Doc #64792 [NEW]: Information is not correct

From: Date: Wed, 08 May 2013 14:17:06 +0000
Subject: Doc #64792 [NEW]: Information is not correct
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9798@lists.php.net to get a copy of this message
From: michael dot buergi at gmx dot net Operating system: Debian 7 PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Information is not correct Description: ------------ --- From manual page: http://www.php.net/function.set-magic-quotes-runtime#refsect1-function.set-magic-quotes-runtime-description --- I am currently testing 5.4.4 on debian 7. According to the documentation on @method set_magic_quotes_runtime() this function should not exist. In reality however: the function exists and executes without any exception, php error, notice or warning when the parameter is set to false. I think that this is good behaviour since a lot of php code does use this method to restore a previously saved state. But it should be properly documented. also on this page: http://www.php.net/manual/en/migration54.incompatible.php Thanks for your work! Test script: --------------- <?php var_dump(function_exists('set_magic_quotes_runtime')); set_magic_quotes_runtime(0); ini_set('magic_quotes_runtime', 0); echo 'done.'; Expected result: ---------------- bool(false); (EXCEPTION WILL BE THROWN) Actual result: -------------- bool(true) done. -- Edit bug report at https://bugs.php.net/bug.php?id=64792&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64792&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64792&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64792&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64792&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64792&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64792&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64792&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64792&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64792&r=support Expected behavior: https://bugs.php.net/fix.php?id=64792&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64792&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64792&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64792&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64792&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64792&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64792&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64792&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64792&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64792&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64792&r=mysqlcfg

« previous php.doc.bugs (#9798) next »