#47059 [Com]: Apache crashes php5ts.dll
| From: | brian at alternate-zone dot com | Date: | Sat, 10 Jan 2009 02:25:57 +0000 |
| Subject: | #47059 [Com]: Apache crashes php5ts.dll | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132715@lists.php.net to get a copy of this message | ||
ID: 47059
Comment by: brian at alternate-zone dot com
Reported By: brian at alternate-zone dot com
Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.2.8
New Comment:
I'm using PHP5.2.8 Win32 zip package
and the mysql dll is: php_mysql.dll
Previous Comments:
------------------------------------------------------------------------
[2009-01-10 00:38:52] pajoye@php.net
Which PHP binaries do you use and which mysql DLL?
------------------------------------------------------------------------
[2009-01-10 00:36:28] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47059&edit=1