From: [EMAIL PROTECTED]
Operating system: Red Hat 6.2
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description: include_path not functioning
phpinfo() and ini_get() report that include_path is set to ".:/usr/local/lib/php".
However, include "filename" and fopen(filename, mode, "1") fail to access files in
/usr/local/lib/php. Manually editing php.ini to explicitly include the default value
for include_path resolves the problem.
Test script:
<?php
phpinfo();
$path = ini_get("include_path");
include("test.txt");
$fh = fopen("test.txt", "r", 1);
?>
Revised php.ini:
;include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
include_path = ".:/usr/local/lib/php"
--
Edit Bug report at: http://bugs.php.net/?id=10308&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]