From:             [EMAIL PROTECTED]
Operating system: Slackware Linux 8.1
PHP version:      4.3.0RC1
PHP Bug Type:     *Configuration Issues
Bug description:  include_path not correct

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
-- 
Edit bug report at http://bugs.php.net/?id=20554&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20554&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20554&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20554&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20554&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20554&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20554&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20554&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20554&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20554&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20554&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20554&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20554&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20554&r=isapi

Reply via email to