On 1 July 2010 11:21, Richard Quadling <[email protected]> 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
>
>

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to