#30540 [Csd->Bgs]: parse_ini_file, bad docs, or perhaps a bug....

From: Date: Sat, 23 Oct 2004 14:33:00 +0000
Subject: #30540 [Csd->Bgs]: parse_ini_file, bad docs, or perhaps a bug....
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969364637@lists.php.net to get a copy of this message
ID: 30540 Updated by: tony2001@php.net Reported By: pookey at pookey dot co dot uk -Status: Closed +Status: Bogus Bug Type: Documentation problem Operating System: linux PHP Version: 5.0.2 Previous Comments: ------------------------------------------------------------------------ [2004-10-23 16:28:48] pookey at pookey dot co dot uk I'm an idiot sometimes, sorry about that one.... I have no excuse :) ------------------------------------------------------------------------ [2004-10-23 15:41:12] tony2001@php.net There _are_ quotes in the example. ------------------------------------------------------------------------ [2004-10-23 15:27:00] pookey at pookey dot co dot uk Description: ------------ http://uk2.php.net/parse_ini_file Here, there are exmaples where a ~ is used in an ini file. moo = http://..../~pookey/moo however, in PHP5 this needs to be moo = "http://..../~pookey/moo" I don't know if the docs need updating, or if this is a bug in the function! Kind Regards, Reproduce code: --------------- <?php parse_ini_file('./tests.ini', true); ?> !!! END PHP FILE !!! START OF INI FILE !!! [paths] TEST_HTTP_PATH = http://localhost/~pookey/wact/tests/cases/web_tests Expected result: ---------------- No parse error? or documentation showing "'s around the strings.... Actual result: -------------- Parse error whilst parsing ini file. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30540&edit=1

« previous php.doc (#969364637) next »