Bug #10308: include_path not functioning

From: Date: Thu, 12 Apr 2001 18:13:29 +0000
Subject: Bug #10308: include_path not functioning
Groups: php.dev 
Request: Send a blank email to php-dev+get-51506@lists.php.net to get a copy of this message
From: bmccarty@apu.edu 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

« previous php.dev (#51506) next »