Req #52185 [Opn->Dup]: superglobals as objects

From: Date: Fri, 25 Jun 2010 21:24:34 +0000
Subject: Req #52185 [Opn->Dup]: superglobals as objects
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151871@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: 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

« previous php.bugs (#151871) next »