Re: PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters.

From: Date: Thu, 01 Jul 2010 10:31:25 +0000
Subject: Re: PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48991@lists.php.net to get a copy of this message
On 1 July 2010 11:21, Richard Quadling <rquadling@gmail.com> wrote: > Hi. > > Is there any documentation regarding this change? http://php.net/functions.arguments says "Note: As of PHP 5, default values may be passed by reference." > > function ca_getUserDetails($pUserid, &$pResults=array()) {} > > is fully allowable in PHP 5+, but not in PHP 4. > > Depending upon version, the error is ... > > Parse error:  parse error, expecting ')' > > or > > Parse error:  syntax error, unexpected '=', expecting ')' > > > I'm just looking for some notes to pass on. > > Thank you. > > Richard. > > > -- > ----- > Richard Quadling > "Standing on the shoulders of some very clever giants!" > EE : http://www.experts-exchange.com/M_248814.html > EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp > Zend Certified Engineer : > http://zend.com/zce.php?c=ZEND002498&r=213474731 > ZOPA : http://uk.zopa.com/member/RQuadling > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#48991) next »