RE: [PHP] Code not working in 4.1

From: Date: Thu, 03 Jan 2002 00:40:19 +0000
Subject: RE: [PHP] Code not working in 4.1
Groups: php.general 
Request: Send a blank email to php-general+get-79276@lists.php.net to get a copy of this message
use: extract($GLOBALS); http://www.php.net/manual/en/function.extract.php -----Original Message----- From: Jonathan Hilgeman [mailto:jhilgeman@ecx.com] Sent: Thursday, January 03, 2002 11:32 AM To: php-general@lists.php.net Subject: [PHP] Code not working in 4.1 I used to run PHP 4.0.3 and at the beginning of some functions that used a lot of global variables, I would add the following lines so I could access all the global variables inside the functions. foreach($GLOBALS as $GlobalVarName => $GlobalVarValue) { global $$GlobalVarName; } I upgraded to 4.1 and this code now causes PHP to die about 50-100 lines after it is executed. Any ideas? - Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#79276) next »