Skip to content

Commit 28cdce1

Browse files
bjoriderickr
authored andcommitted
Fix incorrect version checks
1 parent 6f6900f commit 28cdce1

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

src/BSON/Binary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ phongo_create_object_retval php_phongo_binary_create_object(zend_class_entry *cl
172172
HashTable *php_phongo_binary_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
173173
{
174174
php_phongo_binary_t *intern;
175-
#if PHP_VERSION_ID <= 70000
175+
#if PHP_VERSION_ID >= 70000
176176
zval retval;
177177
#else
178178
zval retval = zval_used_for_init;

src/BSON/ObjectID.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int php_phongo_objectid_compare_objects(zval *o1, zval *o2 TSRMLS_DC) /*
173173
HashTable *php_phongo_objectid_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
174174
{
175175
php_phongo_objectid_t *intern;
176-
#if PHP_VERSION_ID <= 70000
176+
#if PHP_VERSION_ID >= 70000
177177
zval retval;
178178
#else
179179
zval retval = zval_used_for_init;

src/MongoDB/BulkWrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ phongo_create_object_retval php_phongo_bulkwrite_create_object(zend_class_entry
311311

312312
HashTable *php_phongo_bulkwrite_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
313313
{
314-
#if PHP_VERSION_ID <= 70000
314+
#if PHP_VERSION_ID >= 70000
315315
zval retval;
316316
#else
317317
zval retval = zval_used_for_init;

src/MongoDB/Command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ phongo_create_object_retval php_phongo_command_create_object(zend_class_entry *c
134134
HashTable *php_phongo_command_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
135135
{
136136
php_phongo_command_t *intern;
137-
#if PHP_VERSION_ID <= 70000
137+
#if PHP_VERSION_ID >= 70000
138138
zval retval;
139139
#else
140140
zval retval = zval_used_for_init;

src/MongoDB/Cursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ phongo_create_object_retval php_phongo_cursor_create_object(zend_class_entry *cl
254254
HashTable *php_phongo_cursor_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
255255
{
256256
php_phongo_cursor_t *intern;
257-
#if PHP_VERSION_ID <= 70000
257+
#if PHP_VERSION_ID >= 70000
258258
zval retval;
259259
#else
260260
zval retval = zval_used_for_init;

src/MongoDB/CursorId.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ phongo_create_object_retval php_phongo_cursorid_create_object(zend_class_entry *
120120
HashTable *php_phongo_cursorid_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
121121
{
122122
php_phongo_cursorid_t *intern;
123-
#if PHP_VERSION_ID <= 70000
123+
#if PHP_VERSION_ID >= 70000
124124
zval retval;
125125
#else
126126
zval retval = zval_used_for_init;

src/MongoDB/Manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ bool phongo_add_server_debug(void *item, void *ctx) /* {{{ */
435435
HashTable *php_phongo_manager_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
436436
{
437437
php_phongo_manager_t *intern;
438-
#if PHP_VERSION_ID <= 70000
438+
#if PHP_VERSION_ID >= 70000
439439
zval retval;
440440
#else
441441
zval retval = zval_used_for_init;

src/MongoDB/Query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ phongo_create_object_retval php_phongo_query_create_object(zend_class_entry *cla
171171
HashTable *php_phongo_query_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
172172
{
173173
php_phongo_query_t *intern;
174-
#if PHP_VERSION_ID <= 70000
174+
#if PHP_VERSION_ID >= 70000
175175
zval retval;
176176
#else
177177
zval retval = zval_used_for_init;

src/MongoDB/ReadPreference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ phongo_create_object_retval php_phongo_readpreference_create_object(zend_class_e
208208

209209
HashTable *php_phongo_readpreference_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
210210
{
211-
#if PHP_VERSION_ID <= 70000
211+
#if PHP_VERSION_ID >= 70000
212212
zval retval;
213213
#else
214214
zval retval = zval_used_for_init;

src/MongoDB/Server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ phongo_create_object_retval php_phongo_server_create_object(zend_class_entry *cl
554554
HashTable *php_phongo_server_get_debug_info(zval *object, int *is_temp TSRMLS_DC) /* {{{ */
555555
{
556556
php_phongo_server_t *intern = NULL;
557-
#if PHP_VERSION_ID <= 70000
557+
#if PHP_VERSION_ID >= 70000
558558
zval retval;
559559
#else
560560
zval retval = zval_used_for_init;

0 commit comments

Comments
 (0)