ID: 9863 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Scripting Engine problem Assigned To: Comments: can't reproduce anymore, please ignore Previous Comments: --------------------------------------------------------------------------- [2001-03-20 06:27:17] [EMAIL PROTECTED] 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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9863&edit=2 -- 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]