Bug #10308 Updated: include_path not functioning
| From: | sterling@php.net | Date: | Fri, 07 Dec 2001 14:07:28 +0000 |
| Subject: | Bug #10308 Updated: include_path not functioning | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72850@lists.php.net to get a copy of this message | ||
ID: 10308
Updated by: sterling
Reported By: bmccarty@apu.edu
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] bmccarty@apu.edu
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