1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

What's the [0] for here? Looks wrong and causes stuff to segv

This commit is contained in:
Rasmus Lerdorf
2008-02-02 01:12:01 +00:00
parent 1ee260b121
commit 539eaceddc
+1 -1
View File
@@ -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;
}