Doc #66620 [Nab]: Wrong separator for php_ini_scanned_files() files

From: Date: Sat, 01 Feb 2014 18:55:13 +0000
Subject: Doc #66620 [Nab]: Wrong separator for php_ini_scanned_files() files
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10935@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 User updated by: miloslav dot hula at gmail dot com Reported by: miloslav dot hula at gmail dot com Summary: Wrong separator for php_ini_scanned_files() files Status: Not a bug Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: I was wrong, I'm sorry. But it is still confusing. Description section says: "php_ini_scanned_files() returns a comma-separated list of configuration files..." Return value section says: "Returns a comma-separated string of .ini files on success. Each comma is followed by a newline." But newline is after last item too, not only after comma. Previous Comments: ------------------------------------------------------------------------ [2014-02-01 09:06:38] krakjoe@php.net 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 ... ------------------------------------------------------------------------ [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

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