PHP 4.0 Bug #8578 Updated: include_path option only reads first path

From: Date: Tue, 09 Jan 2001 09:07:54 +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-43526@lists.php.net to get a copy of this message
ID: 8578 Updated by: stas Reported By: mlavallee@nc.rr.com Old-Status: Open Status: Closed Bug Type: PHP options/info functions Assigned To: Comments: Use quotes around the string. Otherwise INI parser thinks ; is a start of the comment. Previous Comments: --------------------------------------------------------------------------- [2001-01-08 17:29:03] mlavallee@nc.rr.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-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

« previous php.dev (#43526) next »