php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10308 include_path not functioning
Submitted: 2001-04-12 14:13 UTC Modified: 2001-12-07 09:07 UTC
From: bmccarty at apu dot edu Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: Red Hat 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bmccarty at apu dot edu
New email:
PHP Version: OS:

 

 [2001-04-12 14:13 UTC] bmccarty at apu dot 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-07 09:07 UTC] sterling@php.net
include_patch works, remove the quotes and try editing /etc/php.ini
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC