From: Ilia Alshanetsky Date: Fri, 21 Dec 2007 01:21:52 +0000 (+0000) Subject: Fixed bug #43644 (is_callable(':') crashes) X-Git-Tag: RELEASE_1_3_1~478 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11a93f62ac3ea22ce0d6d829ecd91a537c184336;p=php Fixed bug #43644 (is_callable(':') crashes) --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 056b3b6879..d852d2e689 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -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. */