Skip to content

Commit 75d478f

Browse files
committed
Apply code review suggestions
1 parent 7ef035e commit 75d478f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BSON/Iterator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static const zend_object_iterator_funcs php_phongo_iterator_it_funcs = PHONGO_IT
358358
php_phongo_iterator_it_get_current_key,
359359
php_phongo_iterator_it_move_forward,
360360
php_phongo_iterator_it_rewind,
361-
NULL,
361+
NULL, /* invalidate_current */
362362
php_phongo_iterator_it_get_gc);
363363

364364
static zend_object_iterator* php_phongo_iterator_get_iterator(zend_class_entry* ce, zval* object, int by_ref)

src/phongo_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ typedef ZEND_RESULT_CODE zend_result;
316316
(invalidate_current), \
317317
(get_gc), \
318318
}
319-
#else
319+
#else /* PHP_VERSION_ID < 80000 */
320320
#define PHONGO_ITERATOR_FUNCS(dtor, valid, get_current_data, get_current_key, move_forward, rewind, invalidate_current, get_gc) \
321321
{ \
322322
(dtor), \
@@ -327,7 +327,7 @@ typedef ZEND_RESULT_CODE zend_result;
327327
(rewind), \
328328
(invalidate_current), \
329329
}
330-
#endif
330+
#endif /* PHP_VERSION_ID >= 80000 */
331331

332332
/* ZVAL_OBJ_COPY was added in PHP 8.0 */
333333
#ifndef ZVAL_OBJ_COPY

0 commit comments

Comments
 (0)