cvs: Zend(PHP_4_4) / zend_compile.c
| From: | Derick Rethans | Date: | Fri, 07 Oct 2005 08:42:51 +0000 |
| Subject: | cvs: Zend(PHP_4_4) / zend_compile.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4215@lists.php.net to get a copy of this message | ||
derick Fri Oct 7 04:42:51 2005 EDT
Modified files: (Branch: PHP_4_4)
/Zend zend_compile.c
Log:
- Fixed uninitialized value problem when an empty file is included.
http://cvs.php.net/diff.php/Zend/zend_compile.c?r1=1.240.2.10.2.4&r2=1.240.2.10.2.5&ty=u
Index: Zend/zend_compile.c
diff -u Zend/zend_compile.c:1.240.2.10.2.4 Zend/zend_compile.c:1.240.2.10.2.5
--- Zend/zend_compile.c:1.240.2.10.2.4 Mon Aug 15 06:47:23 2005
+++ Zend/zend_compile.c Fri Oct 7 04:42:49 2005
@@ -338,9 +338,14 @@
static inline zend_bool zend_is_function_or_method_call(znode *variable)
{
- zend_uint type = variable->u.EA.type;
-
- return (type == ZEND_PARSED_FCALL);
+ zend_uint type;
+
+ if (variable->op_type != IS_VAR) {
+ return 0;
+ } else {
+ type = variable->u.EA.type;
+ return (type == ZEND_PARSED_FCALL);
+ }
}