php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20957 Random Corrupted Constants.
Submitted: 2002-12-12 08:28 UTC Modified: 2002-12-13 05:52 UTC
From: hash at huasing dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.2.3 OS: FreeBSD 4.7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hash at huasing dot com
New email:
PHP Version: OS:

 

 [2002-12-12 08:28 UTC] hash at huasing dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-12 09:10 UTC] 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-13 05:50 UTC] hash at huasing dot com
Problem seems to be resolved with PHP4.3 and PHP-latest snapshot.

Thank you very much.
 [2002-12-13 05:52 UTC] derick@php.net
closing then
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 03:00:02 2025 UTC