From: Dmitry Stogov Date: Sat, 29 Sep 2007 08:52:04 +0000 (+0000) Subject: optimization X-Git-Tag: RELEASE_2_0_0a1~1717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51640ce6a47896b550bf116c82327cbc714385dd;p=php optimization --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index a9708185d1..b5d8e5310d 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2703,8 +2703,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze if (*zobj_ptr_ptr && *ce_ptr && (*ce_ptr)->__call != 0) { retval = (*ce_ptr)->__call != NULL; *fptr_ptr = (*ce_ptr)->__call; - } - if (!*zobj_ptr_ptr && *ce_ptr && (*ce_ptr)->__callstatic) { + } else if (!*zobj_ptr_ptr && *ce_ptr && (*ce_ptr)->__callstatic) { retval = 1; *fptr_ptr = (*ce_ptr)->__callstatic; }