#48912 [NEW]: Namespace causes unexpected strict behaviour
| From: | david at grudl dot com | Date: | Tue, 14 Jul 2009 08:29:36 +0000 |
| Subject: | #48912 [NEW]: Namespace causes unexpected strict behaviour | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139713@lists.php.net to get a copy of this message | ||
From: david at grudl dot com
Operating system:
PHP version: 5.3.0
PHP Bug Type: Scripting Engine problem
Bug description: Namespace causes unexpected strict behaviour
Description:
------------
The namespace clause causes the PHP behaves more strictly (unexpected
behavior according to the documentation - with regard to the namespaces or
function extract).
Reproduce code:
---------------
<?php
// namespace A;
function test()
{
extract(func_get_arg(0));
}
test(array('x' => 1));
Expected result:
----------------
--none--
Actual result:
--------------
When row "namespace A" is commented:
--none--
When row "namespace A" is uncommented:
Strict Standards: Only variables should be passed by reference in ...
--
Edit bug report at http://bugs.php.net/?id=48912&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48912&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48912&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48912&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48912&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48912&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48912&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48912&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48912&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48912&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48912&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48912&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48912&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48912&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48912&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48912&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48912&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48912&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48912&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48912&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48912&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48912&r=mysqlcfg