Fixed bug #46755 (warning: use statement with non-compound name)

Fixed bug #46979 (use with non-compound name *has* effect)
This commit is contained in:
Dmitry Stogov 2009-01-14 13:57:42 +00:00
parent 5d060ebe05
commit f7abb84b43
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -41,6 +41,7 @@ PHP NEWS
- 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 @@ PHP NEWS
- 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)

View File

@ -5188,7 +5188,7 @@ void zend_do_use(znode *ns_name, znode *new_name, int is_global TSRMLS_DC) /* {{
} else {
*name = *ns;
zval_copy_ctor(name);
warn = !is_global;
warn = !is_global && !CG(current_namespace);
}
}