|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-26 20:31 UTC] jani@php.net
[2008-09-08 20:06 UTC] stas@php.net
[2008-10-26 01:00 UTC] php-bugs at lists dot php dot net
[2012-01-11 13:18 UTC] info at ria-developer dot eu
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jan 07 13:00:02 2026 UTC |
Description: ------------ ini_set changes the 'access' parameter of configuration entry to 63 without any reason. This behaviour did not exist in previous versions and is very easy to reproduce. It is not documented and not in the php 5.6.3 changelog. Reproduce code: --------------- <?php define('CONFIG_ENTRY', 'magic_quotes_runtime'); function dumpini() { $configs = ini_get_all(); echo 'access value: '.$configs[CONFIG_ENTRY]['access']."\n"; } dumpini(); echo 'ini_set(\''.CONFIG_ENTRY.'\', 0);'."\n"; ini_set(CONFIG_ENTRY, 0); dumpini(); Expected result: ---------------- access value: 7 ini_set('magic_quotes_runtime', 0); access value: 7 Actual result: -------------- access value: 7 ini_set('magic_quotes_runtime', 0); access value: 63