From: bugnet at gartenfreunde dot eu dot org Operating system: Linux 2.6.13-gentoo-r5 SMP AMD64 PHP version: 5.1.1 PHP Bug Type: Unknown/Other Function Bug description: auto_prepend_file seems to fail randomly
Description: ------------ I'm using PHP Version 5.0.5-pl3-gentoo (no way to upgrade to 5.1.1) and Apache 2.0.54 with mpm_worker. Approx. 10 times a day I get an errormessage like the following, the rest of the time (50000+ requests) everything works fine: [Thu Dec 01 11:17:18 2005] [error] [client x.x.x.x] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'lib_tools.php' for inclusion (include_path='/var/www/includes') in /var/www/htdocs/index.php on line 22, referer: http://xxx [Thu Dec 01 11:17:18 2005] [error] [client x.x.x.x] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'lib_session.php' for inclusion (include_path='/var/www/includes') in /var/www/htdocs/index.php on line 25, referer: http://xxx index.php looks like this: <-snip-> include_once ($lib_dir.'lib_tools.php'); include_once ($lib_dir.'lib_session.php'); <-snip-> $lib_dir is set in prepend.php, httpd.conf reads: php_value auto_prepend_file /var/www/prepend.php When the error occurs $lib_dir is empty, so it looks like the prepend file doesn't get prepended under some conditions. I'm not sure if this is an PHP or an Apache issue, on our old system running PHP4 and Apache 1.x the problem didn't occur. Reproduce code: --------------- occurs randomly approx 10 times a day, regardsless of systemload etc. Expected result: ---------------- a file listed in auto_prepend_file should always be prepended -- Edit bug report at http://bugs.php.net/?id=35500&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35500&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35500&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35500&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35500&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35500&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35500&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35500&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35500&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35500&r=support Expected behavior: http://bugs.php.net/fix.php?id=35500&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35500&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35500&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35500&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35500&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35500&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35500&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35500&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35500&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35500&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35500&r=mysqlcfg
