#47122 [Opn->Bgs]: php5ts.dll crashes apache if mysql ext is used.
| From: | pajoye@php.net | Date: | Fri, 16 Jan 2009 09:08:25 +0000 |
| Subject: | #47122 [Opn->Bgs]: php5ts.dll crashes apache if mysql ext is used. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132940@lists.php.net to get a copy of this message | ||
ID: 47122
Updated by: pajoye@php.net
Reported By: Faither at web dot de
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: Windows + IE7 installs
PHP Version: 5.2.8
New Comment:
Do not use libmysql 5.1 with PHP releases.
Previous Comments:
------------------------------------------------------------------------
[2009-01-16 03:07:23] Faither at web dot de
Problem signature:
Problem Event Name: APPCRASH
Application Name: httpd.exe
Application Version: 2.2.11.0
Application Timestamp: 493f5d44
Fault Module Name: php5ts.dll
Fault Module Version: 5.2.8.8 <---- (-;
Fault Module Timestamp: 493d75fc
Exception Code: c0000005
Exception Offset: 0000ac5a
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1031
Additional Information 1: 8932
Additional Information 2: bd08f61e9b0baa119ce3d8ab843a334c
Additional Information 3: 15af
Additional Information 4: 582f8703263a701737a9aefbdea6db5a
------------------------------------------------------------------------
[2009-01-16 02:54:18] Faither at web dot de
Description:
------------
Apache/2.2.11 (Win32) (working if not used in conjuction with... mySql
+ PHP)
Mysql Ver 14.14 Distrib 5.1.30, for Win32 (ia32) (working ...
PHP 5.2.8 (working ...)
Windowze Vizta OS Version 6.0.6001.2.1.0.256.1
And no problem with same setup running under Kubuntu 8.10; works like a
charm - no errors(!!).
While Googling my way through the internet i stumbled across this:
"..." Dependency issue of php_mysql.dll: "..." failure in the
dependencies. DwmAPI.dll. (Vista Window Manager) "..." from
*http://techmale.com/2008/02/27/how-microsoft-caused-apache-php_mysqldll-to-failusing-vista-dwmapidll/
So the root of this problem seems to be an Internet Explorer
dependency.(?)
Reproduce code:
---------------
<?php //db.php
//Database setup:
$dbuser = 'blah';
$dbpass = 'blubb';
$dbhost = "won't tell";
function mydbconnect ($db="")
{
global $dbuser;
global $dbpass;
global $dbhost;
$dblink = @mysql_connect($dbhost, $dbuser, $dbpass);
if (!$dblink)
die ('Failed to connect to database: ' .
mysql_error());
...
Expected result:
----------------
A connection to mysql or
... the error message.
Actual result:
--------------
Crashed Apache, no connection to mysql and as a result, no error
message either.
Problem signature:
Problem Event Name: APPCRASH
Application Name: httpd.exe
Application Version: 2.2.11.0
Application Timestamp: 493f5d44
Fault Module Name: php5ts.dll
Fault Module Version: 5.2.5.5
Fault Module Timestamp: 4733df98
Exception Code: c0000005
Exception Offset: 0000ab4a
OS Version: 6.0.6001.2.1.0.256.1
Locale ID: 1031
Additional Information 1: c797
Additional Information 2: 8067133c6c7966c6a4ceb523ba9cf502
Additional Information 3: 97fc
Additional Information 4: ef6496175a5cdac9eb83bb68beb98048
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47122&edit=1