#37488 [NEW]: import_request_variables doesnt work with pre-changed _REQUEST vars.

From: Date: Thu, 18 May 2006 07:01:11 +0000
Subject: #37488 [NEW]: import_request_variables doesnt work with pre-changed _REQUEST vars.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97300@lists.php.net to get a copy of this message
From: serkan at kibritoglu dot net Operating system: winXP PHP version: 5.1.4 PHP Bug Type: Variables related Bug description: import_request_variables doesnt work with pre-changed _REQUEST vars. Description: ------------ Very simple logic. Here you go; Reproduce code: --------------- if($_GET['param']=='') $_GET['param'] = "I am changed forever."; echo "Should print: " . $_GET['param'] . "<br>\n"; import_request_variables("g", "g_"); echo "And... !: " . $g_param . "<br>\n"; Expected result: ---------------- Should print: I am changed forever. And... !: I am changed forever. Actual result: -------------- Should print: I am changed forever. And... !: -- Edit bug report at http://bugs.php.net/?id=37488&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37488&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37488&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37488&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37488&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37488&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37488&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37488&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37488&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37488&r=support Expected behavior: http://bugs.php.net/fix.php?id=37488&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37488&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37488&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37488&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37488&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37488&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37488&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37488&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37488&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37488&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37488&r=mysqlcfg

« previous php.bugs (#97300) next »