Bug #63975 [Opn->Fbk]: Fileinfo module causing parse_ini_file to skip 0 in array

From: Date: Sat, 12 Jan 2013 05:17:59 +0000
Subject: Bug #63975 [Opn->Fbk]: Fileinfo module causing parse_ini_file to skip 0 in array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175971@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63975&edit=1 ID: 63975 Updated by: pajoye@php.net Reported by: admin at michiganwxsystem dot com Summary: Fileinfo module causing parse_ini_file to skip 0 in array -Status: Open +Status: Feedback Type: Bug Package: PHP options/info functions Operating System: CentOS 6.2 PHP Version: 5.4.10 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2013-01-12 03:19:43] admin at michiganwxsystem dot com I have confirmed this in 5.3.15 as well ------------------------------------------------------------------------ [2013-01-12 03:16:47] admin at michiganwxsystem dot com Description: ------------ --- From manual page: http://www.php.net/ref.fileinfo --- 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 [Colors] 0=796E4C 1=E8E661 2=FFFF66 3=FFE533 4=FFCC00 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63975&edit=1

« previous php.bugs (#175971) next »