Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48991 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92133 invoked from network); 1 Jul 2010 10:31:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2010 10:31:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:47234] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/53-06668-08E6C2C4 for ; Thu, 01 Jul 2010 06:31:28 -0400 Received: by iwn36 with SMTP id 36so1844549iwn.29 for ; Thu, 01 Jul 2010 03:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FPvVlM5a149KBvmgpeq5lO3ekbIsA7uKFYR1rCIM1II=; b=S2yEieuk35cjYbsuNcTldYrLyw4o9jGxzh68nlYQJccyMIpylOsBvcgM2X8pACXgrW 8s1cMeqJlfXb4tL0l4t9vjUJwl/P3A2RC2SKe84lvcGxD/WjYdAU89CEf3R7yneVufLD 8KZZlFZtxgCDqUDXA6b6/DAVXvsP/+mJj1d6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AHA3VHzbP2Rrw2J6zYz6TWDqB+dM2PmOQCTrw2eDd0Qlz/jdtZP76KH+0JogcgF6k/ WQCBS1w/0UaJgxemRy1WFAVgRKXXrtwKlq1lBdpSHq30jx/Tqp6GgGwQGf81KXAvgxIt qPBXt/hnE3Zq995kt49b0axuk51prk7vtbo8E= MIME-Version: 1.0 Received: by 10.231.174.129 with SMTP id t1mr10442391ibz.61.1277980285596; Thu, 01 Jul 2010 03:31:25 -0700 (PDT) Received: by 10.231.162.77 with HTTP; Thu, 1 Jul 2010 03:31:25 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Jul 2010 11:31:25 +0100 Message-ID: To: RQuadling Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters. From: petercowburn@gmail.com (Peter Cowburn) 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=3Darray()) {} > > is fully allowable in PHP 5+, but not in PHP 4. > > Depending upon version, the error is ... > > Parse error: =A0parse error, expecting ')' > > or > > Parse error: =A0syntax error, unexpected '=3D', 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=3DZEND002498&r=3D2134= 74731 > ZOPA : http://uk.zopa.com/member/RQuadling > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >