]> granicus.if.org Git - php/commitdiff
Fixed bug #43644 (is_callable(':') crashes)
authorIlia Alshanetsky <iliaa@php.net>
Fri, 21 Dec 2007 01:21:52 +0000 (01:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 21 Dec 2007 01:21:52 +0000 (01:21 +0000)
Zend/zend_API.c

index 056b3b6879bab2c6cdf672ffc663a131f8e36c90..d852d2e689243ae63a3dad4df8581be843c04229 100644 (file)
@@ -2329,6 +2329,10 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze
                mlen = Z_STRLEN_P(callable) - clen - 2;
                lmname = colon + 2;
        }
+       if (colon && colon == Z_STRVAL_P(callable)) {
+               return 0;
+       }
+
        if (colon != NULL) {
                /* This is a compound name.
                 * Try to fetch class and then find static method. */