|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44936 BC break: ini_set() changes 'access' value
Submitted: 2008-05-07 18:11 UTC Modified: 2008-10-26 01:00 UTC
Avg. Score:4.1 ± 1.0
Reproduced:11 of 11 (100.0%)
Same Version:9 (81.8%)
Same OS:4 (36.4%)
From: romain dot dorgueil at sensio dot net Assigned: iliaa (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.2CVS only OS: linux 2.6.22-14
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-05-07 18:11 UTC] romain dot dorgueil at sensio dot net
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:
define('CONFIG_ENTRY', 'magic_quotes_runtime');

function dumpini()
  $configs = ini_get_all();
  echo 'access value: '.$configs[CONFIG_ENTRY]['access']."\n";


echo 'ini_set(\''.CONFIG_ENTRY.'\', 0);'."\n";
ini_set(CONFIG_ENTRY, 0);


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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-26 20:31 UTC]
Ilia, I think this is the patch that causes the side-effect:
 [2008-09-08 20:06 UTC]
Why it is a problem? As far as I can see, there was a change that now uses some previously unused bits in the access mask, but why it is a bug? Does something that worked before doesn't work now? 
 [2008-10-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2012-01-11 13:18 UTC] info at ria-developer dot eu
I also have the same problem in PHP 5.2.17 version. Does anyone know what means 
"63" in key "access" after call ini_get_all()? Thanks for help in advance.
According to documentation 
( there sholuld be 
1,6,4 or 7.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 18:01:36 2024 UTC