We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02b237 commit 3946ab3Copy full SHA for 3946ab3
agent/tests/tlib_php.c
@@ -301,9 +301,15 @@ nr_status_t tlib_php_engine_create(const char* extra_ini PTSRMLS_DC) {
301
/*
302
* Actually start the Zend Engine.
303
*/
304
- if (FAILURE == php_module_startup(&tlib_module, &newrelic_module_entry, 1)) {
+#if ZEND_MODULE_API_NO >= ZEND_8_2_X_API_NO
305
+ if (FAILURE == php_module_startup(&tlib_module, &newrelic_module_entry)) {
306
return NR_FAILURE;
307
}
308
+#else
309
+ if (FAILURE == php_module_startup(&tlib_module, &newrelic_module_entry, 1)) {
310
+ return NR_FAILURE;
311
+ }
312
+#endif
313
314
315
* As noted above, we now replace the interned string callbacks on PHP
0 commit comments