Skip to content

Commit 998970b

Browse files
committed
fix unit tests build for PHPs < 8.0
1 parent 1ee6486 commit 998970b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/tests/test_user_instrument_wraprec_hashmap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ static void test_wraprecs_hashmap() {
2424
nruserfn_t *wraprec, *found_wraprec;
2525
zend_string *func_name, *scope_name, *method_name;
2626

27-
func_name = zend_string_init_fast(NR_PSTR(FUNCTION_NAME));
28-
scope_name = zend_string_init_fast(NR_PSTR(SCOPE_NAME));
29-
method_name = zend_string_init_fast(NR_PSTR(METHOD_NAME));
27+
func_name = zend_string_init(NR_PSTR(FUNCTION_NAME), 0);
28+
scope_name = zend_string_init(NR_PSTR(SCOPE_NAME), 0);
29+
method_name = zend_string_init(NR_PSTR(METHOD_NAME), 0);
3030

3131
// user_instrument_wraprec_hashmap is initialized at minit
3232
// destroy it to test agent's behavior when it is not initialized

0 commit comments

Comments
 (0)