|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35388 crash on new object when passed incorrect access details
Submitted: 2005-11-25 12:15 UTC Modified: 2005-12-28 01:00 UTC
From: Assigned: georg (profile)
Status: No Feedback Package: MySQLi related
PHP Version: 5CVS-2005-12-20 (snap) OS: Windows XP Home SP2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-11-25 12:15 UTC]
If you create a new mysqli object using incorrect login details, Apache crashes.

Version info output from mysql_* and mysqli_* functions:

Client Encoding: latin1
Client Version: 5.0.16
Protocol Version: 10
Server Version: 5.0.16-nt

Client Encoding: latin1
Client Version: 4.1.7
Protocol Version: 10
Server Version: 5.0.16-nt

Reproduce code:
Ensure username and/or password are incorrect:

<?php $mysqli = new mysqli('localhost', 'root', 'root'); ?>

Expected result:
Incorrect login details error

Actual result:
Apache crashes. Windows error reporting shows:

szAppName : Apache.exe     
szAppVer :     
szModName : php5ts.dll     
szModVer :     
offset : 00008be4


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-28 23:18 UTC]
Looks like there is a binary incompatibility in protocol when connecting from 4.1 client to 5.0.16.

I was able to reproduce the problem under linux too.

As a possible workaround you should compile PHP against 5.0.16 client lib.
 [2005-12-19 13:41 UTC] jhala at uoregon dot edu
update on that.  i made my instance of this problem go away and php/phpmyadmin worked fine by simply making sure that i copied libmysql.dll from the php main directory (where the phpinstall program put it automagically) to the extensions directory (which I had added to windows PATH).  restarted apache, problem gone.  hope this helps.
 [2005-12-20 15:41 UTC]
Problem still exists after trying latest snapshot.
 [2005-12-20 15:55 UTC]
Make sure you don't have multiple libmysql.dll's around in your system.
 [2005-12-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 16:01:35 2024 UTC