|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch set_error_handler-allow-null-parameter for Unknown/Other Function Bug #60738Patch version 2012-03-10 22:34 UTC Return to Bug #60738 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: kevin.swinton@gmail.com
1523,1524c1523,1524
< if (!zend_is_callable(error_handler, 0, &error_handler_name TSRMLS_CC)) {
< zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
---
> if ( Z_TYPE_P(error_handler) != IS_NULL && !zend_is_callable(error_handler, 0, &error_handler_name TSRMLS_CC)) {
> zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback or null",
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 10:00:01 2025 UTC |