Req #45768 [Opn->Dup]: parse_ini_file and the hash character

From: Date: Fri, 09 Jan 2015 01:24:36 +0000
Subject: Req #45768 [Opn->Dup]: parse_ini_file and the hash character
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189817@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=45768&edit=1 ID: 45768 Updated by: ajf@php.net Reported by: jtaal at eljakim dot nl Summary: parse_ini_file and the hash character -Status: Open +Status: Duplicate Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: debian etch PHP Version: 5.2.6 Block user comment: N Private report: N New Comment: Dup of https://bugs.php.net/bug.php?id=38732 Previous Comments: ------------------------------------------------------------------------ [2008-08-08 17:23:32] jtaal at eljakim dot nl Description: ------------ On linux commenting lines in ini like files is oftenly done with # characters instead of ; characters (my.cnf for example) Maybe there should be a setting where you can set (an array of) the comment start characters? Reproduce code: --------------- array parse_ini_file ( string $filename [[, bool $process_sections ], array $comment_delimiters ]) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=45768&edit=1

« previous php.bugs (#189817) next »