php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #30540 parse_ini_file, bad docs, or perhaps a bug....
Submitted: 2004-10-23 15:27 UTC Modified: 2004-10-23 16:32 UTC
From: pookey at pookey dot co dot uk Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.0.2 OS: linux
Private report: No CVE-ID: None
 [2004-10-23 15:27 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-23 15:41 UTC] tony2001@php.net
There _are_ quotes in the example. 

 [2004-10-23 16:28 UTC] pookey at pookey dot co dot uk
I'm an idiot sometimes, sorry about that one.... I have no 
excuse :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 07 10:01:31 2024 UTC