Doc #66620 [Opn->Nab]: Wrong separator for php_ini_scanned_files() files
| From: | krakjoe@php.net | Date: | Sat, 01 Feb 2014 09:06:39 +0000 |
| Subject: | Doc #66620 [Opn->Nab]: Wrong separator for php_ini_scanned_files() files | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10914@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66620&edit=1
ID: 66620
Updated by: krakjoe@php.net
Reported by: miloslav dot hula at gmail dot com
Summary: Wrong separator for php_ini_scanned_files() files
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
The documentation states clearly the format of the output:
> Returns a comma-separated string of .ini files on success. Each comma is followed by a newline.
The example code produces the correct and desired result.
Not a bug ...
Previous Comments:
------------------------------------------------------------------------
[2014-01-31 19:50:26] miloslav dot hula at gmail dot com
Description:
------------
Manual page http://cz2.php.net/manual/en/function.php-ini-scanned-files.php
talks about: "returns a comma-separated list" and example is
explode(',', $filelist)
But separator is ",\n", not only comma. Example should be:
explode(",\n", $filelist)
Actual behaviour is used in php-src/Make.global file:
https://github.com/php/php-src/blob/28e0a2129bf932af8e74ab7b1040adbad34af3bd/Makefile.global#L96
Following BUG metion that:
https://bugs.php.net/bug.php?id=20267&edit=2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66620&edit=1