ID:          48912
 Updated by:  vr...@php.net
 Reported By: david at grudl dot com
 Status:      Open
 Bug Type:    Scripting Engine problem
 PHP Version: 5.3.0
 New Comment:

extract() uses ZEND_SEND_PREFER_REF. It seems that it is not compatible
with func_get_arg() under a namespace.


Previous Comments:
------------------------------------------------------------------------

[2009-07-14 08:29:36] david at grudl dot com

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 this bug report at http://bugs.php.net/?id=48912&edit=1

Reply via email to