addition to #3833

From: Date: Fri, 02 Jun 2000 16:03:09 +0000
Subject: addition to #3833
Groups: php.dev 
Request: Send a blank email to php-dev+get-20068@lists.php.net to get a copy of this message
This seems to be bug 3833. What I'm seeing exists in 3.0.13-16 (possibly earlier versions also). PHP was configured: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-oracle --enable-debug --with-config-file-path=/usr/local/apache thanks, Dave Dunkin Vista.com ----- Forwarded message from Dave Dunkin <dave.dunkin@vista.com> ----- > Date: Fri, 26 May 2000 16:31:52 -0700 > From: Dave Dunkin <dave.dunkin@vista.com> > To: bellingham@vista.com > Subject: how to hose php > > There is a bug in PHP which causes errors (often segfaults) when from a > function that takes an argument by reference, you include a file that > defines a function. For example: > > > foo.php3: > <?php > function foo(&$bar) > { > include "foobar.php3"; > foobar(); > } > > foo($bar); > ?> > > foobar.php3: > <?php > function foobar() > { > echo "foobar<br>\n"; > } > ?> > > > Loading foo.php3 can make PHP crash. It seems to happen after the script > has finished executing and PHP is cleaning up the variables. You can > aviod this by either not using reference variables or using "require" > instead of "include" in these situations. > > Dave ----- End forwarded message -----

« previous php.dev (#20068) next »