From:             [EMAIL PROTECTED]
Operating system: Windows XP
PHP version:      4.1.2
PHP Bug Type:     Variables related
Bug description:  Variable Scrope suggestion

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 bug report at http://bugs.php.net/?id=16981&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16981&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16981&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16981&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16981&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16981&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16981&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16981&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16981&r=submittedtwice

Reply via email to