File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ static ZEND_INI_MH(zend_test_observer_OnUpdateCommaList)
315
315
}
316
316
if (stage != PHP_INI_STAGE_STARTUP && stage != PHP_INI_STAGE_ACTIVATE && stage != PHP_INI_STAGE_DEACTIVATE && stage != PHP_INI_STAGE_SHUTDOWN ) {
317
317
ZEND_HASH_FOREACH_STR_KEY (* p , funcname ) {
318
- if ((func = zend_hash_find_ptr (EG (function_table ), funcname )) && ZEND_OBSERVER_DATA ( func ) != NULL ) {
318
+ if ((func = zend_hash_find_ptr (EG (function_table ), funcname ))) {
319
319
void * old_handler ;
320
320
zend_observer_remove_begin_handler (func , observer_begin , (zend_observer_fcall_begin_handler * )& old_handler );
321
321
zend_observer_remove_end_handler (func , observer_end , (zend_observer_fcall_end_handler * )& old_handler );
@@ -338,7 +338,7 @@ static ZEND_INI_MH(zend_test_observer_OnUpdateCommaList)
338
338
zend_string_release (str );
339
339
if (stage != PHP_INI_STAGE_STARTUP && stage != PHP_INI_STAGE_ACTIVATE && stage != PHP_INI_STAGE_DEACTIVATE && stage != PHP_INI_STAGE_SHUTDOWN ) {
340
340
ZEND_HASH_FOREACH_STR_KEY (* p , funcname ) {
341
- if ((func = zend_hash_find_ptr (EG (function_table ), funcname )) && ZEND_OBSERVER_DATA ( func ) != NULL ) {
341
+ if ((func = zend_hash_find_ptr (EG (function_table ), funcname ))) {
342
342
zend_observer_add_begin_handler (func , observer_begin );
343
343
zend_observer_add_end_handler (func , observer_end );
344
344
}
You can’t perform that action at this time.
0 commit comments