|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-04 21:06 UTC] aaron dot hawley at uvm dot edu
we built today and are still having problems with the include_path. it seems to occasionally null out, but can work everytime by putting :
ini_set('include_path', ini_get('include_path'));
before including anything found in the include_path.
this has been happening since 4.0.6, if not earlier. Apache 1.3.20
more info:
http://www.uvm.edu/phpinfo.php
http://www.uvm.edu:8888/www/bug-11006.php
http://www.uvm.edu:8888/www/bug-11006.phps
aaron
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
Just as a note. This still happens with: Apache-1.3.26 PHP-4.2.1 Solaris 8 (SunOS 5.8) It's fairly infrequent, but still occasionally get: Warning: Unable to access PEAR.php in foo.php on line 42 Fatal error: Failed opening required 'PEAR.php' (include_path='') in foo.php on line 42 As Aaron suggested, adding this code fixes it: ini_set('include_path', ini_get('include_path'));here is more information on that snapshot we installed; in particular the requirement of absolute paths. it seems to not drop the 'include_path' information - which is good, but it also doesn't seem to use the value either. Warning: main("Class.php") - No such file or directory in /usr/local/http-data/htdocs/foo/foo.php on line 2 Fatal error: Failed opening required 'Class.php' (include_path='.:/usr/local/lib/php') in /usr/local/http-data/htdocs/foo/foo.php on line 2I am experiencing the same issue with my hosting provider! Plaform is: * FreeBSD 4.6-STABLE * Apache/1.3.27 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.11 OpenSSL/0.9.6a * PHP 4.2.3 I have to do the ini_set('include_path', ini_get('include_path')); trick to pick up any PEAR classes. It seems, however, that if I set the include_path in an .htaccess directive, the problem completely goes away... If I can help diagnose this, I'd be happy to. Patrick