Req #52185 [NEW]: superglobals as objects
| From: | tobias dot sattler at gmx dot de | Date: | Fri, 25 Jun 2010 20:08:41 +0000 |
| Subject: | Req #52185 [NEW]: superglobals as objects | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-151867@lists.php.net to get a copy of this message | ||
From:
Operating system: Mac OSX
PHP version: Irrelevant
Package: Unknown/Other Function
Bug Type: Feature/Change Request
Bug description:superglobals as objects
Description:
------------
In times of OOP it would be nice if you can just use the superglobals as
objects.
Of course you can do it yourself with $foo = (object)$_POST; but then the
compiler has do the work twice instead of once.
Therefore it would be nice if there is a switch in php.ini file like
use_superglobals_as_objects = no; # yes - $_POST->foo, $_GET->foobar
--
Edit bug report at http://bugs.php.net/bug.php?id=52185&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52185&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52185&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52185&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52185&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52185&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52185&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52185&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52185&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52185&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52185&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52185&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52185&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52185&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52185&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52185&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52185&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52185&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52185&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52185&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52185&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52185&r=mysqlcfg