ID: 10308
Updated by: sterling
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Red Hat 6.2
PHP Version: 4.0.4pl1
New Comment:
include_patch works, remove the quotes and try editing /etc/php.ini
Previous Comments:
------------------------------------------------------------------------
[2001-04-12 14:13:28] [EMAIL PROTECTED]
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 this 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]