Re: segmentation fault when passing arguments by reference or importing global variables

From: Date: Tue, 22 Feb 2005 02:21:16 +0000
Subject: Re: segmentation fault when passing arguments by reference or importing global variables
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-15141@lists.php.net to get a copy of this message
I've as well experienced this problem several times (in a medium-size code base). By returning-by-reference in the wrong places, do you mean something like function foo() { return 10;} $bar=&foo(); I'm pretty convinced that even with "correct" (in that respect) code the crash still occurs. Michael On Mon, 21 Feb 2005 15:56:34 -0300, Martin Sarsale <martin.sarsale@tnsweb.com> wrote: > Derick Rethans wrote: > > > I've been noticing the same things, and still trying to figure out where > > it happens. It has most likely to do with returning-by-reference in the > > wrong places. > > What do you mean with returning by reference in the wrong places? could > you give me an example? > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.300 / Virus Database: 266.2.0 - Release Date: 2/21/2005 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#15141) next »