Skip to content

Commit 50a1c27

Browse files
committed
Trying something else
1 parent 11cb800 commit 50a1c27

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ext/standard/basic_functions.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,8 @@ void user_shutdown_function_dtor(zval *zv) /* {{{ */
16721672

16731673
void user_tick_function_dtor(user_tick_function_entry *tick_function_entry) /* {{{ */
16741674
{
1675+
zend_fcall_info_args_clear(&tick_function_entry->fci, 1);
1676+
zend_release_fcall_info_cache(&tick_function_entry->fci_cache);
16751677
zval_ptr_dtor(&tick_function_entry->fci.function_name);
16761678

16771679
efree(tick_function_entry);
@@ -1713,9 +1715,10 @@ static void user_tick_function_call(user_tick_function_entry *tick_fe) /* {{{ */
17131715
tick_fe->fci.retval = &retval;
17141716
if (zend_call_function(&tick_fe->fci, &tick_fe->fci_cache) == SUCCESS) {
17151717
zval_ptr_dtor(tick_fe->fci.retval);
1718+
} else {
1719+
php_error_docref(NULL, E_WARNING, "Unable to call tick function");
17161720
}
17171721

1718-
zend_release_fcall_info_cache(&tick_fe->fci_cache);
17191722
tick_fe->calling = false;
17201723
}
17211724
}
@@ -2422,7 +2425,7 @@ PHP_FUNCTION(unregister_tick_function)
24222425
}
24232426

24242427
zend_llist_del_element(BG(user_tick_functions), &tick_fe, (int (*)(void *, void *)) user_tick_function_compare);
2425-
//efree(tick_fe);
2428+
//Z_TRY_DELREF(tick_fe.fci.function_name);
24262429
}
24272430
/* }}} */
24282431

0 commit comments

Comments
 (0)