Req #52185 [Dup->Bgs]: superglobals as objects
| From: | dtajchreber@php.net | Date: | Fri, 25 Jun 2010 21:24:57 +0000 |
| Subject: | Req #52185 [Dup->Bgs]: superglobals as objects | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151872@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52185&edit=1
ID: 52185
Updated by: dtajchreber@php.net
Reported by: tobias dot sattler at gmx dot de
Summary: superglobals as objects
-Status: Duplicate
+Status: Bogus
Type: Feature/Change Request
Package: Unknown/Other Function
Operating System: Mac OSX
PHP Version: Irrelevant
Previous Comments:
------------------------------------------------------------------------
[2010-06-25 23:24:31] dtajchreber@php.net
See #52174.
------------------------------------------------------------------------
[2010-06-25 22:08:41] tobias dot sattler at gmx dot de
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 this bug report at http://bugs.php.net/bug.php?id=52185&edit=1