FAQ

On 1 July 2010 11:31, Peter Cowburn wrote:
On 1 July 2010 11:21, Richard Quadling 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
Thank you.


--
-----
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

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedJul 1, '10 at 10:22a
activeJul 1, '10 at 10:37a
posts3
users2
websitephp.net

2 users in discussion

Richard Quadling: 2 posts Peter Cowburn: 1 post

People

Translate

site design / logo © 2022 Grokbase