Bug #47122 [Com]: php5ts.dll crashes apache if mysql ext is used.
| From: | giunta dot gaetano at gmail dot com | Date: | Fri, 29 Oct 2010 15:41:46 +0000 |
| Subject: | Bug #47122 [Com]: php5ts.dll crashes apache if mysql ext is used. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155631@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=47122&edit=1
ID: 47122
Comment by: giunta dot gaetano at gmail dot com
Reported by: Faither at web dot de
Summary: php5ts.dll crashes apache if mysql ext is used.
Status: Bogus
Type: Bug
Package: MySQL related
Operating System: Windows + IE7 installs
PHP Version: 5.2.8
Block user comment: N
New Comment:
Re-reading pajoye's comment, I think I might have understood it.
Translating for the layman: "remove the mysql bin dir from your path"
Previous Comments:
------------------------------------------------------------------------
[2010-10-29 17:31:08] giunta dot gaetano at gmail dot com
Not sure if it's the exact same bug, but this is happening to me too,
with php 5.2.14.
I tested using Apache 2.0.63, Apache 2.2.13 from ASF and 2.2.17 from
ApacheLounge. Test application: eZ Publish 4.3.
At first, Apache crashed using php_mysqli.dll, so I moved back to using
mysql and disabled loading of mysqli.
Now I got a crash in the main dll:
Nom de lâapplication: Apache.exe
Version de lâapplication: 2.0.63.200
Horodatage de l'application: 479031fa
Nom du module par défaut: php5ts.dll
Version du module par défaut: 5.2.14.14
Horodateur du module par défaut: 4c47316f
Code de lâexception: c0000005
Décalage de lâexception: 0000ac5a
Version du système: 6.0.6002.2.2.0.768.3
Identificateur de paramètres régionaux: 1036
Information supplémentaire n° 1: 1f17
Information supplémentaire n° 2: 97af06af30f0ff31d89de56503697f47
Information supplémentaire n° 3: 5dc0
Information supplémentaire n° 4: 94650c6b796579acf5df59b9b6b9dfd8
------------------------------------------------------------------------
[2009-01-16 09:08:24] pajoye@php.net
Do not use libmysql 5.1 with PHP releases.
------------------------------------------------------------------------
[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/bug.php?id=47122&edit=1