Bug #16981 Updated: Variable Scrope suggestion
| From: | rodif_bl@php.net | Date: | Fri, 03 May 2002 02:23:07 +0000 |
| Subject: | Bug #16981 Updated: Variable Scrope suggestion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6794@lists.php.net to get a copy of this message | ||
ID: 16981
Updated by: rodif_bl@php.net
Reported By: Lakario@msn.com
-Status: Closed
+Status: Bogus
Bug Type: Variables related
Operating System: Windows XP
PHP Version: 4.1.2
New Comment:
bogusing....
Previous Comments:
------------------------------------------------------------------------
[2002-05-02 18:58:41] Lakario@msn.com
Sorry bout that, I figured out what I wasn't doing...
------------------------------------------------------------------------
[2002-05-02 18:51:39] Lakario@msn.com
Okay basically this isn't a bug, more of an annoyance though I thought
it should be pointed out.
As you all know variable scope in functions determines that $var1
outside a function is not the same a $var1 inside the function, so you
must pass $var1 to the function. Basic stuff.
Anyhow, there are many variables built into PHP such as $PHP_SELF that
still comply to the variable scope rules, which I think is *very*
annoying. I do not think it should be necessary to pass something like
$PHP_SELF to your function if you need to call it within. I dunno,
maybe I'm just whining, but there you have it.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16981&edit=1