php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27768 Apache crashes with Mysql
Submitted: 2004-03-30 01:44 UTC Modified: 2004-04-07 05:42 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: mathieuparent at infonie dot fr Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.0.0RC1 OS: Windows XP
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: mathieuparent at infonie dot fr
New email:
PHP Version: OS:

 

 [2004-03-30 01:44 UTC] mathieuparent at infonie dot fr
Description:
------------
When I use Apache & Mysql services without mysql extension in php, no problem.
But if I uncomment ";extension=mysql" in php.ini, apache crashes.

I have php5rc1, apache 1.3.29, mysql 4.0.18, WinXP SP1.
With the default php.ini. (-recommended). 

I think that one dll is not at the good place (but which).

Reproduce code:
---------------
>net stop apache
uncomment ";extension=mysql" in php.ini
>net start apache


Expected result:
----------------
Apache shouldn't crash.

Note if I run 'net start apache' many times, sometimes it work's. (sorry it is not a good report)


Actual result:
--------------
Error :
|szAppName : Apache.exe
|szModName : php5ts.dll     
|szModVer : 5.0.0.0     offset : 0003c773


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-30 01:51 UTC] mathieuparent at infonie dot fr
# Note if I run 'net start apache' many times, sometimes it work's.

No it crashes everytime as well as doing ..\Apache.exe
 [2004-04-02 09:29 UTC] marwan at marvonline dot org
Did you copy libmysql.dll to where apache can find it? Either the system32 directory or in the same folder as apache itself.
 [2004-04-02 12:47 UTC] codejysper at lesitedejp dot com
In my case, php_mysql.dll and libmysql.dll MUST be copied in C:\WINNT.

 If these files are copied in 'C:\Program Files\Apache Group\Apache' where we can find apache.exe, then apache crashes unexpectedly (process returns 1067 error code).
 [2004-04-07 05:19 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And make sure you delete ALL old php related dlls from your system before you install the snapshot.

 [2004-04-07 05:42 UTC] mathieuparent at infonie dot fr
Ok, it works great !
I test it with apache 1.3.29 and 2.0.49

Thanks
 [2010-04-09 01:15 UTC] thesacredmail at gmail dot com
I have the same problem with Apache/2.2.15 (Win32) PHP/5.3.2 mysql-5.0.67-win32 :(

when i uncomment extension=php_mysql.dll
Apache crashes.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 00:01:26 2025 UTC