For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > October 2005 > cvs: Zend(PHP_4_4) / zend_compile.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: Zend(PHP_4_4) / zend_compile.c
Derick Rethans

2005-10-07, 3:55 am

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/ze...0.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);
+ }
}


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com