Doc #55727 [Com]: parse_ini_file: discrepance between documentation and example

From: Date: Thu, 15 Nov 2012 11:50:42 +0000
Subject: Doc #55727 [Com]: parse_ini_file: discrepance between documentation and example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9147@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55727&edit=1

 ID:                 55727
 Comment by:         mgriffiths at gmail dot com
 Reported by:        technik at thomas-heuer dot eu
 Summary:            parse_ini_file: discrepance between documentation
                     and example
 Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 Operating System:   *
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Doc edit has been submitted for review which removes the '[' character from the 
notes, as it is allowed in the key.

Second issue should be launched as a separate bug.


Previous Comments:
------------------------------------------------------------------------
[2011-09-19 14:17:24] technik at thomas-heuer dot eu

Description:
------------
Regarding the documentation for parse_ini_file:
http://php.net/manual/en/function.parse-ini-file.php#refsect1-function.parse-ini-file-notes

Under notes it is stated, that the »characters ?{}|&~![()^" must not be used anywhere in
the key […]« but above, there is an example using the square brackets for arrays within the
.ini-files, which works also perfectly under current PHP-versions. The notes should be cleaned.

(Also, it seems some other features, regarding arrays in .ini-files are not documented as well. See
for example: http://stackoverflow.com/questions/338537/can-an-array-be-specified-in-an-ini-file-to-be-parsed-using-zend-config-ini/339135#339135)



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55727&edit=1


Thread (3 messages)

« previous php.doc.bugs (#9147) next »