cvs: ZendEngine2(PHP_5_3) / zend_compile.c php-src NEWS
[email protected] ("Dmitry Stogov") Wed, 14 Jan 2009 13:57:44 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsdmitry1231941464@cvsserver> |
dmitry Wed Jan 14 13:57:44 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src NEWS
/ZendEngine2 zend_compile.c
Log:
Fixed bug #46755 (warning: use statement with non-compound name)
Fixed bug #46979 (use with non-compound name *has* effect)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.965.2.455&r2=1.2027.2.547.2.965.2.456&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.965.2.455 php-src/NEWS:1.2027.2.547.2.965.2.456
--- php-src/NEWS:1.2027.2.547.2.965.2.455 Wed Jan 14 10:50:39 2009
+++ php-src/NEWS Wed Jan 14 13:57:41 2009
@@ -41,6 +41,7 @@
- Fixed building of pdo_sqlite without sqlite3. (Scott)
- Fixed bug #47050 (mysqli_poll() modifies improper variables). (Johannes)
+- Fixed bug #46979 (use with non-compound name *has* effect). (Dmitry)
- Fixed bug #46957 (The tokenizer returns deprecated values). (Felipe)
- Fixed bug #46944 (UTF-8 characters outside the BMP aren't encoded correctly).
(Scott)
@@ -51,6 +52,7 @@
- Fixed bug #46811 (ini_set() doesn't return false on failure). (Hannes)
- Fixed bug #46763 (mb_stristr() wrong output when needle does not exist).
(Henrique M. Decaria)
+- Fixed bug #46755 (warning: use statement with non-compound name). (Dmitry)
- Fixed bug #46746 (xmlrpc_decode_request outputs non-suppressable error when
given bad data). (Ilia)
- Fixed bug #46738 (Segfault when mb_detect_encoding() fails). (Scott)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_compile.c?r1=1.647.2.27.2.41.2.98&r2=1.647.2.27.2.41.2.99&diff_format=u
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.98 ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.99
--- ZendEngine2/zend_compile.c:1.647.2.27.2.41.2.98 Thu Jan 8 22:36:03 2009
+++ ZendEngine2/zend_compile.c Wed Jan 14 13:57:42 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.98 2009/01/08 22:36:03 tony2001 Exp $ */
+/* $Id: zend_compile.c,v 1.647.2.27.2.41.2.99 2009/01/14 13:57:42 dmitry Exp $ */
#include <zend_language_parser.h>
#include "zend.h"
@@ -5188,7 +5188,7 @@
} else {
*name = *ns;
zval_copy_ctor(name);
- warn = !is_global;
+ warn = !is_global && !CG(current_namespace);
}
}