ID:               44130
 Updated by:       [EMAIL PROTECTED]
 Reported By:      thomas at koch dot ro
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Debian
 PHP Version:      4.4.8
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Says the documentation:

  Note: This function returns a copy of the passed arguments only, and
does not account for default (non-passed) arguments.

http://docs.php.net/func-get-args


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

[2008-02-15 13:41:44] thomas at koch dot ro

Description:
------------
THIS IS MY FIRST REPORT! PLEASE DON'T BANG ME!

I'd like to use func_get_args to manipulate variables sent by
reference. I encountered this problem(?) by evaluating ezcSignalSlot[1].
There you find:

        $parameters = array_slice( func_get_args(), 1 );
        call_user_func_array( $callback, $parameters );

It would be fine, if I could use the combination of this methods to
pipe references to normal variables.

[1] http://ezcomponents.org/docs/tutorials/SignalSlot

Reproduce code:
---------------
function test(  )
{
    $args =& func_get_args();
    $args[0]++;
}
$i=1;
test( &$i );
echo $i;

Expected result:
----------------
2

Actual result:
--------------
1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=44130&edit=1

Reply via email to