php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46722 libmysql version 5.1.30 causes PHP crash
Submitted: 2008-11-30 15:15 UTC Modified: 2010-07-24 20:32 UTC
From: bentogoa at gmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.2.6 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bentogoa at gmail dot com
New email:
PHP Version: OS:

 

 [2008-11-30 15:15 UTC] bentogoa at gmail dot com
Description:
------------
Upgrading libmysql.dll 5.0.51a (the one in php 5.2.6 package) to libmysql.dll 5.1.30 (from the latest version of Mysql)causes php to crash.

Tried by php CLI = php proccess ends
via Apache2.2.10 Web Server = The Apache server crashes. 


Reproduce code:
---------------
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
    die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?> 


Expected result:
----------------
print Connected successfully;

Actual result:
--------------
No Response, The Servers crashes.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-30 17:06 UTC] pajoye@php.net
Do not use any mysql DLL but the ones we provide with PHP releases.
 [2008-12-01 03:46 UTC] bentogoa at gmail dot com
so where can libmysql.dll 5.1.30 be downloaded ?
 [2010-07-24 19:33 UTC] neo_in_matrix at msn dot com
The libmysql.dll bundled with php package is 5.0.51a. I want to use the latest version (which is 5.1.48 as of writing this comment), but the simplest mysql call ended up with the following error:

---------------------------
php.exe - Application Error
---------------------------
The instruction at "0x1000ac5a" referenced memory at "0x00000014". The memory could not be "read".


Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK   Cancel   
---------------------------

There is no reason that you refuse users to use newer version of libmysql. Can you just update the dll?
 [2010-07-24 20:32 UTC] pajoye@php.net
This bug is the exact reason why we don't support mysql's libmysql.

They keep breaking ABI and the CRT incompatibilities will cause way too much troubles to be used safely, even only for development.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 03:01:29 2024 UTC