From 539eaceddc512f1eee5067ad529caa855c253fd7 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 2 Feb 2008 01:12:01 +0000 Subject: [PATCH] What's the [0] for here? Looks wrong and causes stuff to segv --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 8ab24e6cf3..503ea5fde3 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2376,7 +2376,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze *ce_ptr = ce_org; } else { /* We already checked for plain function before. */ - if (error) zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)[0]); + if (error) zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); return 0; } -- 2.50.1