cvs: ZendEngine2 / zend_builtin_functions.c
| From: | Stanislav Malyshev | Date: | Sun, 20 Apr 2003 14:20:20 +0000 |
| Subject: | cvs: ZendEngine2 / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1167@lists.php.net to get a copy of this message | ||
stas Sun Apr 20 10:20:20 2003 EDT
Modified files:
/ZendEngine2 zend_builtin_functions.c
Log:
refine the set_error_handler fix
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.185 ZendEngine2/zend_builtin_functions.c:1.186
--- ZendEngine2/zend_builtin_functions.c:1.185 Sun Apr 20 10:18:15 2003
+++ ZendEngine2/zend_builtin_functions.c Sun Apr 20 10:20:20 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.185 2003/04/20 14:18:15 stas Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.186 2003/04/20 14:20:20 stas Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -968,7 +968,7 @@
{
zval **error_handler;
zend_bool had_orig_error_handler=0;
- char *error_handler_name;
+ char *error_handler_name = NULL;
if (ZEND_NUM_ARGS()!=1 || zend_get_parameters_ex(1, &error_handler)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
@@ -976,7 +976,7 @@
if (!zend_is_callable(*error_handler, 0, &error_handler_name)) {
zend_error(E_WARNING, "%s() expects the argument (%s) to be a valid callback",
- get_active_function_name(TSRMLS_C), error_handler_name);
+ get_active_function_name(TSRMLS_C),
error_handler_name?error_handler_name:"unknown");
efree(error_handler_name);
return;
}