Skip to content

Commit 9047b3d

Browse files
jmikoladerickr
authored andcommitted
PHPC-390: Fix OnUpdateString calls within OnUpdateDebug
1 parent b3a0d19 commit 9047b3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

php_phongo.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,7 +2287,11 @@ ZEND_INI_MH(OnUpdateDebug)
22872287
mongoc_log_trace_disable();
22882288
mongoc_log_set_handler(NULL, NULL);
22892289

2290+
#if PHP_VERSION_ID >= 70000
2291+
return OnUpdateString(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
2292+
#else
22902293
return OnUpdateString(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
2294+
#endif
22912295
}
22922296

22932297

@@ -2329,7 +2333,11 @@ ZEND_INI_MH(OnUpdateDebug)
23292333
mongoc_log_trace_enable();
23302334
mongoc_log_set_handler(php_phongo_log, ctx);
23312335

2336+
#if PHP_VERSION_ID >= 70000
2337+
return OnUpdateString(entry, new_value, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
2338+
#else
23322339
return OnUpdateString(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
2340+
#endif
23332341
}
23342342

23352343

0 commit comments

Comments
 (0)