php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #19645 Extended functionality for parse_ini_file
Submitted: 2002-09-27 19:29 UTC Modified: 2003-02-15 16:08 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: daniel dot gorski at develnet dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4CVS-2002-09-27 OS: Linux RH6.2
Private report: No CVE-ID: None
 [2002-09-27 19:29 UTC] daniel dot gorski at develnet dot org
Hi,

this is not a bug report, it is a feature question.

Would it be possible to extend the parse_ini_file() function not to read a configuration file line by line but to handle multiple lines for an entry?

E.g.

  ; This is an .ini file
  FOO = "a short value"

This works fine, but

  ; An other .ini file
  BAR = "a very long value that
         takes more then an other line
         and can't be displayed in a small terminal window"

will return only the first line, which I think is not desired.

What do you people think?

regards dtg

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-15 16:08 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Implemented in PHP5-dev.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 07:01:28 2024 UTC