Problem passing by reference to a global in a function

From: Date: Fri, 31 Dec 1999 01:48:16 +0000
Subject: Problem passing by reference to a global in a function
Groups: php.version4 
Request: Send a blank email to php-version4+get-8740@lists.php.net to get a copy of this message
Hello all, I am having a problem passing by reference to a global variable inside of a function. The variable seems to be unset once the function has exited. The same procedure works as long as I do not call the variables inside of a function. To better explain my predicament, I have created four simple test cases. The names and content of them are pretty much self explanatory. Any suggestions? If I am trying to do something crazy please let me know, but as far as I can tell, this should work. Thanks!! :) I am using latest CVS (December 30, 1999 approx 6pm MST) on Redhat 6.1, Apache 1.3.9 as a DSO. ./configure --with-xml --with-mysql --with-apxs --enable-track-vars --disabl e-inline --disable-debugging I checked the apache error logs, and PHP is not reporting anything unusual... thanks! Jade Meskill Software Developer Liberty Distribution Company Email : jmeskill@libertydistribution.com

Attachment: [application/octet-stream] globalrefarray_broken.php
Attachment: [application/octet-stream] globalrefarray_works.php
Attachment: [application/octet-stream] globalrefvar_broken.php
Attachment: [application/octet-stream] globalrefvar_works.php
« previous php.version4 (#8740) next »