From 11a93f62ac3ea22ce0d6d829ecd91a537c184336 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 21 Dec 2007 01:21:52 +0000 Subject: [PATCH] Fixed bug #43644 (is_callable(':') crashes) --- Zend/zend_API.c | 4 ++++ 1 file changed, 4 insertions(+) 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. */ -- 2.50.1