Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93726 invoked from network); 1 Jul 2010 10:37:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jul 2010 10:37:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-ew0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:35447] helo=mail-ew0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/B3-06668-7FF6C2C4 for ; Thu, 01 Jul 2010 06:37:44 -0400 Received: by ewy2 with SMTP id 2so778949ewy.29 for ; Thu, 01 Jul 2010 03:37:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=6nKYcIvncLoBVGe0ky/rZz5JAZJdyNpTqkzUTvJQHq4=; b=M+v77V3gfR/Mt51pWcG3DvCO6gWZSNz2rsiAooK1JxdxQzeVxqgJ5Lai4lTyswcPaO RE+30aFJebu6Ht2UhF+UT9YLhJXiV4R1ZjTWn34yBWWMEppgWJz8YcxN3r5nlqz7SEeQ +BVBHZW4FryETqA8C7KmUELR2kgLfe/lW1Swc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=KeFHdrkwsnK2TEkt6Bhw9lYQ2F5EE+Q9USl14Yll9hMhhahLUoj5RK32XMGymqDZdg j7IrQyKdICMjuIWuJEgnZmQUbyDRz5J/v1wByzVhQmX0ATfkd4mrUWs1LIj86wHG8KlG WqEf0mEGMsNlPFiZX+NiQIBnY8SHPqIUd9UFc= Received: by 10.213.90.132 with SMTP id i4mr1898170ebm.55.1277980660367; Thu, 01 Jul 2010 03:37:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.21.143 with HTTP; Thu, 1 Jul 2010 03:37:20 -0700 (PDT) Reply-To: RQuadling@googlemail.com In-Reply-To: References: Date: Thu, 1 Jul 2010 11:37:20 +0100 Message-ID: To: Peter Cowburn Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] PHP 4 to PHP 5 change - allowing assignment to pass by reference function parameters. From: rquadling@gmail.com (Richard Quadling) 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=3Darray()) {} >> >> is fully allowable in PHP 5+, but not in PHP 4. >> >> Depending upon version, the error is ... >> >> Parse error: =C2=A0parse error, expecting ')' >> >> or >> >> Parse error: =C2=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=3D213= 474731 >> 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. --=20 ----- 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=3D213474= 731 ZOPA : http://uk.zopa.com/member/RQuadling