diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-12-21 01:21:52 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-12-21 01:21:52 +0000 |
commit | 11a93f62ac3ea22ce0d6d829ecd91a537c184336 (patch) | |
tree | 84a25e046eade4b98a1d4df817a13290e7e730db /Zend/zend_API.c | |
parent | e15fb3853aa30ecb6071927dd4b1ca5163e355d0 (diff) | |
download | php-git-11a93f62ac3ea22ce0d6d829ecd91a537c184336.tar.gz |
Fixed bug #43644 (is_callable(':') crashes)
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 4 |
1 files changed, 4 insertions, 0 deletions
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. */ |