php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47059 Apache crashes php5ts.dll
Submitted: 2009-01-10 00:36 UTC Modified: 2009-01-15 20:09 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: brian at alternate-zone dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.8 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: brian at alternate-zone dot com
New email:
PHP Version: OS:

 

 [2009-01-10 00:36 UTC] brian at alternate-zone dot com
Description:
------------
when I try to make a connection to the database Mysql the Apache HTTP server crashes.

szAppName: httpd.exe szAppVer: 2.2.11.0 szModName: php5ts.dll
szModVerL 5.2.8.8 offset: 00009fe6

Reproduce code:
---------------
<?php

# Define MySQL Settings
define("MYSQL_HOST", "localhost");
define("MYSQL_USER", "root");
define("MYSQL_PASS", "password");
define("MYSQL_DB", "test");

$conn = mysql_connect("".MYSQL_HOST."", "".MYSQL_USER."", "".MYSQL_PASS."") or die(mysql_error());
mysql_select_db("".MYSQL_DB."",$conn) or die(mysql_error());

$sql = "SELECT * FROM test";
$res = mysql_query($sql);

while ($field = mysql_fetch_array($res))
{
$id = $field['id'];
$name = $field['name'];

echo 'ID: ' . $field['id'] . '<br />';
echo 'Name: ' . $field['name'] . '<br /><br />';
}

?>

Expected result:
----------------
ID: 1
Name: John

Actual result:
--------------
Apache HTTP Server has encountered a problem and needs to close

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-10 00:38 UTC] pajoye@php.net
Which PHP binaries do you use and which mysql DLL?
 [2009-01-10 02:25 UTC] brian at alternate-zone dot com
I'm using PHP5.2.8 Win32 zip package
and the mysql dll is: php_mysql.dll
 [2009-01-10 11:08 UTC] pajoye@php.net
I mean which libmysql, for example if you have installed and use mysql 5.1 and libmysql 5.1 dll is used by php.
 [2009-01-15 20:08 UTC] Stan at MComputerSolutions dot com
I had multiple verions, one set located in C:\Windows\System32, of the mysql_php.dll and libmysql.dll. All the files where the same verison. Removed the duplicate files and now PHP can connect to mySQL.
 [2009-01-15 20:09 UTC] pajoye@php.net
not a developer issue, was a libmysql mess > bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC