php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20554 include_path not correct
Submitted: 2002-11-21 18:48 UTC Modified: 2002-11-23 13:33 UTC
From: kevincarlson at houston dot rr dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 4.3.0RC1 OS: Slackware Linux 8.1
Private report: No CVE-ID: None
 [2002-11-21 18:48 UTC] kevincarlson at houston dot rr dot com
Is there something wrong with include_path from the ini file?

grep include_path /usr/local/lib/php.ini
; (directory must also be in include_path or full path must
include_path=/usr/local/lib/php:/share/web/php:/share/web/secure/auth:/share/web/secure:/usr/local/apache2/php
;include_path = ".;c:\php\includes"

*** Please note the '/share/web/secure/auth' path.


ls -al /share/web/secure/auth
total 34
drwxr-xr-x    2 nobody   users         168 Nov 21 16:12 ./
drwxrwxr-x   10 nobody   users         528 Nov 21 16:12 ../
-rwxr-x---    1 nobody   users        9663 Nov 21 18:14 auth.php*
-rwxr-x---    1 nobody   users        5548 Nov 21 17:14 login.php*
-rwxr-x---    1 nobody   users         118 Nov 21 15:57 logout.php*
-rwxr-x---    1 nobody   users        5235 Nov 21 16:47 request_pass.php*

*** sane permissions

Portion of script producing errors:
error_log("cfg_file_path=".get_cfg_var('cfg_file_path'), 0);
error_log("Include path: ".ini_get('include_path'), 0 );
require "auth.php";


Output of error log:
[21-Nov-2002 18:32:38] cfg_file_path=/usr/local/lib/php.ini
[21-Nov-2002 18:32:38] Include path: /usr/local/lib/php:/share/web/php:/share/web/secure:/usr/local/apache2/php
[21-Nov-2002 18:32:38] PHP Warning:  main(auth.php) [<a href='http://www.php.net/function.main'>function.main</a>]: failed to create stream: No such file or directory in /share2/mymp3/index.php on line 11
[21-Nov-2002 18:32:38] PHP Fatal error:  Failed opening required 'auth.php' (include_path='/usr/local/lib/php:/share/web/php:/share/web/secure:/usr/local/apache2/php') in /share2/mymp3/index.php on line 11


So  cfg_file_path says the config file is being used.
but ini_get shows the path does not match my php.ini 

I checked all my files and no ini_set over-rides are in place.  Is this parameter cached somewhere or somehow?

Regards,
Kevin Carlson

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-21 21:15 UTC] sniper@php.net
What apache version are you using?

And are you sure the include_path is not overridden
in httpd.conf or in some .htaccess file?


 [2002-11-22 13:33 UTC] kevincarlson at houston dot rr dot com
You were right.  There was an override in one of my apache configuration files.  My apologies for a 'bogus' bug.

I will look into using the php forums/newsgroups from now on before reporting anything further.  

btw - Apache version - Apache/2.0.43
 [2002-11-23 13:33 UTC] sniper@php.net
Thanks for checking it. :)


 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 22:05:43 2022 UTC