|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63975 Fileinfo module causing parse_ini_file to skip 0 in array
Submitted: 2013-01-12 03:16 UTC Modified: 2013-02-18 00:36 UTC
From: admin at michiganwxsystem dot com Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 5.4.10 OS: CentOS 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 - 12 = ?
Subscribe to this entry?

 [2013-01-12 03:16 UTC] admin at michiganwxsystem dot com
From manual page:
parse_ini_file('/path/to/file', true);
will not read a starting value of 0 when php is built with fileinfo enabled.
example ini file


with fileinfo enabled, the array will not contain 0 as the start point, the array will start at 1, rebuilding php with out fileinfo the array starts at 0
like it should


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-12 03:19 UTC] admin at michiganwxsystem dot com
I have confirmed this in 5.3.15 as well
 [2013-01-12 05:17 UTC]
You mean using fileinfo built statically?

However, I do not see how it could be remotely related as fileinfo does nothing 
related with stream and even less with a given path.
 [2013-01-12 05:17 UTC]
-Status: Open +Status: Feedback
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 03:01:27 2023 UTC