Doc #64050 [NEW]: Register globals removed in 5.4.0
| From: | brandonskypimenta at gmail dot com | Date: | Tue, 22 Jan 2013 21:03:20 +0000 |
| Subject: | Doc #64050 [NEW]: Register globals removed in 5.4.0 | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9457@lists.php.net to get a copy of this message | ||
From: brandonskypimenta at gmail dot com
Operating system: Irrelevant
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Register globals removed in 5.4.0
Description:
------------
At http://php.net/manual/en/faq.using.php#faq.register-globals
it says that
register globals
Test script:
---------------
<Irrelevant>
Expected result:
----------------
The code above demonstrates how register_globals creates a lot of
variables. For
years this type of coding has been frowned upon, and for years it's been
disabled
by default. Note that this deprecated feature was removed in 5.4.0. So
although
most web hosts disable register_globals, there are still outdated articles,
tutorials, and books that require it to be on. Plan accordingly.
Actual result:
--------------
The code above demonstrates how register_globals creates a lot of
variables. For
years this type of coding has been frowned upon, and for years it's been
disabled
by default. Note that PHP will eventually remove this deprecated feature.
So
although most web hosts disable register_globals, there are still outdated
articles, tutorials, and books that require it to be on. Plan accordingly.
--
Edit bug report at https://bugs.php.net/bug.php?id=64050&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64050&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64050&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64050&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64050&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64050&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64050&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64050&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64050&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64050&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64050&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64050&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64050&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64050&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64050&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64050&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64050&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64050&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64050&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64050&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64050&r=mysqlcfg