php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47122 php5ts.dll crashes apache if mysql ext is used.
Submitted: 2009-01-16 02:54 UTC Modified: 2009-01-16 09:08 UTC
From: Faither at web dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.8 OS: Windows + IE7 installs
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: Faither at web dot de
New email:
PHP Version: OS:

 

 [2009-01-16 02:54 UTC] 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

 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-16 03:07 UTC] 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 09:08 UTC] pajoye@php.net
Do not use libmysql 5.1 with PHP releases.
 [2010-10-29 17:31 UTC] 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
 [2010-10-29 17:41 UTC] giunta dot gaetano at gmail dot com
Re-reading pajoye's comment, I think I might have understood it.

Translating for the layman: "remove the mysql bin dir from your path"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 28 00:01:27 2024 UTC