From: [EMAIL PROTECTED] Operating system: * PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: "global $var" incompatibility between PHP 3 & 4 consider the following code snippet: <? function foo() { global $bar; $bar="hello"; } foo(); echo $bar; ?> in PHP 3 calling foo() will create a global variable $bar if it doesn't exist in PHP 4 there will be no $bar after calling foo i think PHP 4 should behave like PHP 3 here not only due to compatibility reasons but also due to the "least supprise" rule -- Edit Bug report at: http://bugs.php.net/?id=9863&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]