PHP 4.0 Bug #8578 Updated: include_path option only reads first path
| From: | mlavallee at nc dot rr dot com | Date: | Mon, 08 Jan 2001 22:29:03 +0000 |
| Subject: | PHP 4.0 Bug #8578 Updated: include_path option only reads first path | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43485@lists.php.net to get a copy of this message | ||
ID: 8578
User Update by: mlavallee@nc.rr.com
Status: Open
Bug Type: PHP options/info functions
Description: include_path option only reads first path
Oddly enough, as another developer pointed out, semicolons are the comment delimiters in the INI
file, which makes them a very poor choice for the split character in paths.
Yet more odd, these paths *did* work in 4.0.x up to 4.0.3pl1. It wasn't until upgrading to
4.0.4 that it behaved as one would expect.
I'd simply recommend including a comment in the ini-dist (and ini-optimized) that indicated
that quotation marks around the path string are required.
-Matt
Previous Comments:
---------------------------------------------------------------------------
[2001-01-08 16:06:47] cynic@php.net
confirmed with today's CVS.
ini_get( 'include_path' ) reports only the first path when paths delimited with semicolon
(escaping backslashes or using slashes makes no difference).
with colon as the delimiter ini_get( 'include_path' ) returns the whole setting, however,
it doesn't work.
---------------------------------------------------------------------------
[2001-01-07 13:48:20] mlavallee@nc.rr.com
Test #1:
Setting:
include_path = .;....lib;..includes
Using require(), picks up files in same path, nowhere else. Without reproducing those lines a dozen
times, I'll say that it always acknowledges the first path specified, but doesn't parse
the splits and use the other paths.
This worked in 4.03pl1.
-Matt
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8578