php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8578 include_path option only reads first path
Submitted: 2001-01-07 13:48 UTC Modified: 2001-01-09 04:07 UTC
From: mlavallee at nc dot rr dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.4 OS: Windows 2000 (Pro)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mlavallee at nc dot rr dot com
New email:
PHP Version: OS:

 

 [2001-01-07 13:48 UTC] mlavallee at nc dot rr dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-08 16:06 UTC] 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-08 17:29 UTC] mlavallee at nc dot rr dot com
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
 [2001-01-09 04:07 UTC] stas@php.net
Use quotes around the string. Otherwise INI parser thinks ;
is a start of the comment.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Sep 17 16:01:27 2019 UTC