#20957 [Fbk->Csd]: Random Corrupted Constants.
ID: 20957
Updated by: derick@php.net
Reported By: hash@huasing.com
-Status: Feedback
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: FreeBSD 4.7
PHP Version: 4.2.3
New Comment:
closing then
Previous Comments:
------------------------------------------------------------------------
[2002-12-13 05:50:39] hash@huasing.com
Problem seems to be resolved with PHP4.3 and PHP-latest snapshot.
Thank you very much.
------------------------------------------------------------------------
[2002-12-12 09:10:53] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-12-12 08:28:57] hash@huasing.com
Under heavy load, mod_php4 seems to corrupt constants, and fail to
require php file specified in a constant. It leaves the following error
message in apache error_log:
[Tue Nov 26 15:02:47 2002] [error] PHP Fatal error: Failed opening
required 'onmassdeletepost' (include_path='.:/usr/local/lib/php'
) in /usr/home/huasing/public_html/common.php on line 35
[Tue Nov 26 15:02:48 2002] [error] PHP Fatal error: Failed opening
required 'DB_ERROR_VALUE_COUNT_ON_ROW' (include_path='.:/usr/loc
al/lib/php') in /usr/home/huasing/public_html/common.php on line 35
[Tue Nov 26 15:02:49 2002] [error] PHP Fatal error: Failed opening
required '_PEAR_default_error_options' (include_path='.:/usr/loc
al/lib/php') in /usr/home/huasing/public_html/common.php on line 35
The relevant lines in common.php are:
33 require_once('/home/home/lib/common/config.php');
34 require_once('PEAR.php');
35 require_once('DB.php');
36 require_once(HUASING_LIB_ERROR);
37 require_once(HUASING_LIB_ENV);
After turning off KeepAlive in apache, and set MaxRequestsPerChild = 1
, this problem doesn't appear any more.
Configure:
'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql'
'--with-gd=/usr/local' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-mysql=/usr/local'
'--enable-xslt' '--with-xslt-sablot' '--with-expat-dir=/usr/local'
'--with-iconv=/usr/local' '--prefix=/usr/local'
'i386-portbld-freebsd4.6.2'
it runs on a Dual CPU server.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20957&edit=1
Thread (4 messages)