#34100 [NEW]: register_globals overrides object assignment
| From: | michael at scribeofthenile dot com | Date: | Fri, 12 Aug 2005 14:25:33 +0000 |
| Subject: | #34100 [NEW]: register_globals overrides object assignment | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-83451@lists.php.net to get a copy of this message | ||
From: michael at scribeofthenile dot com
Operating system: GNU/Linux
PHP version: 4.4.0
PHP Bug Type: Unknown/Other Function
Bug description: register_globals overrides object assignment
Description:
------------
While register_globals is enabled, if a GET parameter is passed with the
same name as an object, the object assignation is ignored.
Reproduce code:
---------------
Access via "file.php?test=string"
$test->test = 'test';
var_dump($test);
Expected result:
----------------
object(stdClass)(1) { ["test"]=> string(4) "test" }
Actual result:
--------------
string(6) "string"
--
Edit bug report at http://bugs.php.net/?id=34100&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34100&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34100&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34100&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34100&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34100&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34100&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34100&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34100&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34100&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34100&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34100&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34100&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34100&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34100&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34100&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34100&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34100&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34100&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34100&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34100&r=mysqlcfg