#35500 [Opn->Fbk]: auto_prepend_file seems to fail randomly
ID: 35500
Updated by: tony2001@php.net
Reported By: bugnet at gartenfreunde dot eu dot org
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Linux 2.6.13-gentoo-r5 SMP AMD64
PHP Version: 5.1.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-12-01 12:30:32] bugnet at gartenfreunde dot eu dot org
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 this bug report at http://bugs.php.net/?id=35500&edit=1
Thread (8 messages)