Date: 09/20/00
- Next message: Dan Kalowsky: "[PHP-DEV] ext/odbc/config.m4"
- Previous message: tcs <email protected>: "[PHP-DEV] PHP 4.0 Bug #6862: mail() can not work with IIS5.0's SMTP"
- Next in thread: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6427 Updated: func_get_arg() does not support references"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 6427
Updated by: waldschrott
Reported By: waldschrott <email protected>
Status: Open
Bug Type: Feature/Change Request
Assigned To:
Comments:
a function func_get_rarg() should avoid this by treating any function parameter as a reference (if possible), moved to feature request
Previous Comments:
---------------------------------------------------------------------------
[2000-09-20 18:23:08] stas <email protected>
I fear this cannot be done - you should pass a variable by reference from the start, otherwise you will just assign a reference to a copy.
---------------------------------------------------------------------------
[2000-08-29 21:38:56] waldschrott <email protected>
func_get_arg() does not support references (see example),
$o=1;
test($o);
echo $o;
function test() {
$l=&func_get_arg(0);
$l=2; }
displays 1, should 2, I think it should be possible changing this without impact, if not perhaps a func_get_rarg() be fine
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6427
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dan Kalowsky: "[PHP-DEV] ext/odbc/config.m4"
- Previous message: tcs <email protected>: "[PHP-DEV] PHP 4.0 Bug #6862: mail() can not work with IIS5.0's SMTP"
- Next in thread: Bug Database: "[PHP-DEV] PHP 4.0 Bug #6427 Updated: func_get_arg() does not support references"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

