Edit report at http://bugs.php.net/bug.php?id=52185&edit=1

 ID:               52185
 Updated by:       dtajchre...@php.net
 Reported by:      tobias dot sattler at gmx dot de
 Summary:          superglobals as objects
-Status:           Open
+Status:           Duplicate
 Type:             Feature/Change Request
 Package:          Unknown/Other Function
 Operating System: Mac OSX
 PHP Version:      Irrelevant

 New Comment:

See #52174.


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to