From: sun at unleashedmind dot com Operating system: PHP version: 5.3.14 Package: PHP options/info functions Bug Type: Bug Bug description:magic_quotes_gpc is deprecated but defaults to 1
Description: ------------ http://php.net/manual/info.configuration.php states: Warning This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. But yet: Name Default [...] Changelog magic_quotes_gpc "1" Removed in PHP 5.4.0. Pretty much all distros ship with PHP 5.3.x that has it disabled today: magic_quotes_gpc = Off But when PHP has no configuration file (which happens to be the case for CLI in some bundles/distros; e.g., MAMP), then the evil feature is unexpectedly enabled. Proposed solution: - Change the default to "0" (off). Related bugs: - https://bugs.php.net/bug.php?id=61550 - philip stated that "It remains on by default with PHP 5.3.x", but did not give a reason for why that is. Any chance to discuss, or at least to get a reason? Backstory: http://drupal.org/node/1569456#comment-6045228 Test script: --------------- echo ini_get("magic_quotes_gpc"); Expected result: ---------------- 0 Actual result: -------------- 1 -- Edit bug report at https://bugs.php.net/bug.php?id=62526&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62526&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62526&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62526&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62526&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62526&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62526&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62526&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62526&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62526&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62526&r=support Expected behavior: https://bugs.php.net/fix.php?id=62526&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62526&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62526&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62526&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62526&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62526&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62526&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62526&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62526&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62526&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62526&r=mysqlcfg