@Fixed infinite recursion crash bug in ticks (Jason)
Prevent reenterant calls to a user tick function by flagging the function
entry during call.
This prevents code like the following from infinitely recursing until a
crash occurs:
<?php
register_tick_function(a);
declare(ticks=1) {
function a() {
print "blah\n";
}
;
;
;
;
}
?>
php_error(E_WARNING,"%s(): Unable to call %s::%s() - function does not exist",get_active_function_name(TSRMLS_C),Z_OBJCE_PP(obj)->name,Z_STRVAL_PP(method));
}else{
php_error(E_WARNING,"%s(): Unable to call tick function",get_active_function_name(TSRMLS_C));
zval**obj,**method;
if(Z_TYPE_P(function)==IS_STRING){
php_error(E_WARNING,"%s(): Unable to call %s() - function does not exist",get_active_function_name(TSRMLS_C),Z_STRVAL_P(function));
php_error(E_WARNING,"%s(): Unable to call %s::%s() - function does not exist",get_active_function_name(TSRMLS_C),Z_OBJCE_PP(obj)->name,Z_STRVAL_PP(method));
}else{
php_error(E_WARNING,"%s(): Unable to call tick function",get_active_function_name(TSRMLS_C));