cvs: ZendEngine2 / zend_API.c

From: Date: Sun, 28 Dec 2003 16:20:06 +0000
Subject: cvs: ZendEngine2 / zend_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2161@lists.php.net to get a copy of this message
helly Sun Dec 28 11:20:06 2003 EDT Modified files: /ZendEngine2 zend_API.c Log: WS Index: ZendEngine2/zend_API.c diff -u ZendEngine2/zend_API.c:1.230 ZendEngine2/zend_API.c:1.231 --- ZendEngine2/zend_API.c:1.230 Mon Dec 22 08:09:15 2003 +++ ZendEngine2/zend_API.c Sun Dec 28 11:20:06 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_API.c,v 1.230 2003/12/22 13:09:15 wez Exp $ */ +/* $Id: zend_API.c,v 1.231 2003/12/28 16:20:06 helly Exp $ */ #include "zend.h" #include "zend_execute.h" @@ -1588,15 +1588,17 @@ switch (Z_TYPE_P(callable)) { case IS_STRING: - if (callable_name) + if (callable_name) { *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - - if (syntax_only) + } + if (syntax_only) { return 1; + } lcname = zend_str_tolower_dup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); - if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1)) + if (zend_hash_exists(EG(function_table), lcname, Z_STRLEN_P(callable)+1)) { retval = 1; + } efree(lcname); break;

« previous php.zend-engine.cvs (#2161) next »