From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.2.1 PHP Bug Type: Documentation problem Bug description: Fix the tutorial about global variables
The intro tutorial says the following: One of the most powerful features of PHP is the way it handles HTML forms. The basic concept that is important to understand is that any form element in a form will automatically result in a variable with the same name as the element being created on the target page. But it is not true any more, since the global variable is turned off by default since 4.1.2 and it is said that it is bad practice to turn it on. There are so many new PHP programmers who stumbled on this one. The scripts they write according to the tutorial simply do not work. Also, there are a lot of scripts written before 4.1.2 that use this feature and they won't work after being downloaded by people who are not familiar with PHP. -- Edit bug report at http://bugs.php.net/?id=17428&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17428&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17428&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17428&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17428&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17428&r=support Expected behavior: http://bugs.php.net/fix.php?id=17428&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17428&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17428&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17428&r=globals