Bug #11379 Updated: Local/Global variable scope inside functions

From: Date: Sun, 24 Feb 2002 08:59:12 +0000
Subject: Bug #11379 Updated: Local/Global variable scope inside functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-893@lists.php.net to get a copy of this message
ID: 11379 Updated by: yohgaki@php.net Reported By: germain@ebooksfrance.com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: any PHP Version: 4.0.5 New Comment: Sorry. It probably won't happen. Previous Comments: ------------------------------------------------------------------------ [2002-02-24 03:35:44] roberto@berto.net I suggest the creating of a allways global scope's function like at http://bugs.php.net/bug.php?id=14712 ------------------------------------------------------------------------ [2001-06-09 15:04:49] germain@ebooksfrance.com Hello, I just wanted to tell you that hidding Global scope variables when you are inside a function seems really totally weird to me... Why do I have to make a Global statement with hundreds of variables names each time I want to build a function ? I had created those as Global in the main code, so why the hell should I declare them global again ??? Now each time I want to build a function, I think twice about it because there are so much scope troubles that it is very hard to do... aren't functions supposed to simplify the code ? Anyway, thanks you very much for PHP, it is a great language... to me, it would be absolutely perfect without this scope problem Germain ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11379&edit=1

« previous php.bugs (#893) next »