Bug #15374 Updated: include_path loses value when executed

From: Date: Tue, 16 Jul 2002 13:28:34 +0000
Subject: Bug #15374 Updated: include_path loses value when executed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14310@lists.php.net to get a copy of this message
ID: 15374 Updated by: jflemer@php.net Reported By: aaron.hawley@uvm.edu Status: Open Bug Type: PHP options/info functions -Operating System: Sun OS 5.7 +Operating System: Solaris 8 -PHP Version: 4.1.1 +PHP Version: 4.2.1 New Comment: 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')); Previous Comments: ------------------------------------------------------------------------ [2002-02-09 22:11:29] jflemer@php.net I've seen this bug come up once and a while. It seemed to be to happen on the first request to each server process, so if apache keeps children around a long time, it almost never happens. But if max_request_per_child (or whatever) is set lower, it seems to happen more frequently. [ this purely from memory, i will try to duplicate this ... ] ------------------------------------------------------------------------ [2002-02-04 21:06:39] aaron.hawley@uvm.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15374&edit=1

« previous php.bugs (#14310) next »