php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47205 php_mysql crashes apache
Submitted: 2009-01-24 04:37 UTC Modified: 2009-01-24 10:33 UTC
From: marcos dot x86 at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.2.8 OS: Windows XP SP3
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcos dot x86 at hotmail dot com
New email:
PHP Version: OS:

 

 [2009-01-24 04:37 UTC] marcos dot x86 at hotmail dot com
Description:
------------
The Apache 2.2.11 crashes after any PHP script that uses a MySQL 
function, like mysql_select_db. The crash report says about 
php5ts.dll being crashed.

Reproduce code:
---------------
1. Have a MySQL 5.1.30 running.
2. Have a Apache 2.2.11 running, with PHP 5.2.8.
3. (here we check that both MySQL\bin and PHP are in PATH)
4. Run any MySQL+PHP script (in my case, Joomla installation).
5. Apache reports crashing twice, and the browser goes on server error.

Sample Code:
mysql_connect();
mysql_select_db("test");

(Yes, it crashes.)



Expected result:
----------------
Flawless Joomla setup or blank page for the code supplied.

Actual result:
--------------
Apache crashing against php5ts.dll

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-24 10:33 UTC] pajoye@php.net
"3. (here we check that both MySQL\bin and PHP are in PATH)"

And then libmysql 5.1.x is being used by PHP and it crashes.

Do not ever use libmysql 5.1.x with PHP but only the libmysql provided with the PHP releases.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 02:01:33 2024 UTC