From: samuel at slbdata dot se Operating system: PHP version: 6CVS-2008-01-02 (snap) PHP Bug Type: Feature/Change Request Bug description: Implement dummy get / set_magic_quotes_runtime for compatibility
Description: ------------ In PHP 6 magic_quotes has been removed completely, but many scripts use get/set_magic_quotes_runtime to DISABLE it. These scripts break with PHP 6, even though they do not use magic_quotes. Reproduce code: --------------- <?php $old = get_magic_quotes_runtime(); set_magic_quotes_runtime(0); // Do something here set_magic_quotes_runtime($old); Expected result: ---------------- Because the script tried to disable magic_quotes, it should work. I suggest that the behavior in PHP 6 is changed to: get_magic_quotes_runtime() // always returns 0 set_magic_quotes_runtime(0) // does nothing set_magic_quotes_runtime(1) // fatal error (0 and 1 could of course be replaced with anything that is equal to FALSE or TRUE, respectively) Actual result: -------------- With php6.0-200801022130 I get: PHP Fatal error: Call to undefined function get_magic_quotes_runtime() in - on line 3 -- Edit bug report at http://bugs.php.net/?id=43732&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43732&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43732&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43732&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43732&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43732&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43732&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43732&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43732&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43732&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43732&r=support Expected behavior: http://bugs.php.net/fix.php?id=43732&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43732&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43732&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43732&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43732&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43732&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43732&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43732&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43732&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43732&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43732&r=mysqlcfg
