php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28431 Apache 1 and 2 crash on gd2, exif, mbstring modules (maybe other too)
Submitted: 2004-05-18 13:33 UTC Modified: 2004-05-18 22:47 UTC
From: mastabog at hotmail dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5CVS-2004-05-18 (dev) OS: WinXP
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: mastabog at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-05-18 13:33 UTC] mastabog at hotmail dot com
Description:
------------
Starting a few days ago (on friday, may 14th i think) my apache under winxp won't start if the gd2, mb_string and exif modules (maybe other too) are activated. Please note that this is recent, and I have not modified the php.ini nor the apache's httpd.conf files (i have also checked for updated in the php.ini-recommanded).

The Apache2 (mine is 2.0.49) won't start and outputs the known apache's pop-up crash window with 'debug' and 'close' and the php.log file inside apache's dir states that:
----
[18-May-2004 13:16:17] PHP Notice:  Constant MB_OVERLOAD_MAIL already defined in Unknown on line 0
----

The Apache1.x (mine is 1.3.31) starts then dies afterwards with a generic crash pop-up window (application error, the memory could not be read .....) and the php.log file has more entries:
----
[18-May-2004 13:10:06] PHP Notice:  Constant MB_OVERLOAD_MAIL already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant MB_OVERLOAD_STRING already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant MB_OVERLOAD_REGEX already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant MB_CASE_UPPER already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant MB_CASE_LOWER already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant MB_CASE_TITLE already defined in Unknown on line 0
[18-May-2004 13:10:06] PHP Notice:  Constant EXIF_USE_MBSTRING already defined in Unknown on line 0
----

It just seems apache 1.3 goes over more notices than apache2, but still dies when a pae is requested.

The same happens when trying to load the gd2 module, as follows:

Apache2 dies again with an apache's pop-up crash window and php.log has:
----
[18-May-2004 13:22:48] PHP Notice:  Constant IMG_GIF already defined in Unknown on line 0
----

Apache1.x dies when starting thew service/executable as apche2 or later on when a page is requested and php.log has:
----
[18-May-2004 13:25:00] PHP Notice:  Constant IMG_GIF already defined in Unknown on line 0
[18-May-2004 13:25:00] PHP Notice:  Constant IMG_JPG already defined in Unknown on line 0
[18-May-2004 13:25:00] PHP Notice:  Constant IMG_JPEG already defined in Unknown on line 0
....
----
there are 60+ messages of constant IMG_<XXX> already defined .... 

Again apache1 goes over more php notices, but still dies.

Something has surely changed in the latest php5 code causing this sudden reproducible crash ... and i badly needed both gd2 and exif ... 

Thanks for looking into it.

Bogdan



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-18 17:27 UTC] wez@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This should be fixed now; please try the next snapshot dated after this entry.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 17:01:34 2025 UTC