RE: [PHP4BETA] returning a reference from a function ?

From: Date: Mon, 25 Oct 1999 15:16:41 +0000
Subject: RE: [PHP4BETA] returning a reference from a function ?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5689@lists.php.net to get a copy of this message
> -----Original Message----- > From: hholzgra@healey.highway.bertelsmann.de > [mailto:hholzgra@healey.highway.bertelsmann.de]On Behalf Of Hartmut > Holzgraefe > Sent: Monday, October 25, 1999 02:46 PM > To: php4-beta > Subject: Re: [PHP4BETA] returning a reference from a function ? > > > > function byref(&$ref) { $ref = &$value; } > > > does not behave as i would have expected in the first place > > > ( see also http://bugs.php.net/bugs.php3?id=2589 ) > > > > In later versions default parameters must be constant anyway so > this will > > not be an issue. > > ????? > this is not at all about default parameters Sorry, I misread the single line definition as (silly me): function byref(&$ref = &$value ) { Sam

« previous php.version4 (#5689) next »