]> granicus.if.org Git - php/commitdiff
What's the [0] for here? Looks wrong and causes stuff to segv
authorRasmus Lerdorf <rasmus@php.net>
Sat, 2 Feb 2008 01:12:01 +0000 (01:12 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 2 Feb 2008 01:12:01 +0000 (01:12 +0000)
Zend/zend_API.c

index 8ab24e6cf3159225db405465ac48ea4da331d748..503ea5fde34713b3efecb4f8f0138c8652e7b34c 100644 (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;
        }