#35388 [Opn->Fbk]: crash on new object when passed incorrect access details
| From: | sniper@php.net | Date: | Tue, 20 Dec 2005 14:55:09 +0000 |
| Subject: | #35388 [Opn->Fbk]: crash on new object when passed incorrect access details | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90728@lists.php.net to get a copy of this message | ||
ID: 35388
Updated by: sniper@php.net
Reported By: dmytton@php.net
-Status: Open
+Status: Feedback
Bug Type: MySQLi related
Operating System: Windows XP Home SP2
PHP Version: 5CVS-2005-12-20 (snap)
Assigned To: georg
New Comment:
Make sure you don't have multiple libmysql.dll's around in your system.
Previous Comments:
------------------------------------------------------------------------
[2005-12-20 15:41:13] dmytton@php.net
Problem still exists after trying latest snapshot.
------------------------------------------------------------------------
[2005-12-19 13:41:09] 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-11-28 23:18:31] georg@php.net
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-11-25 12:15:02] dmytton@php.net
Description:
------------
If you create a new mysqli object using incorrect login details, Apache
crashes.
Version info output from mysql_* and mysqli_* functions:
mysql
Client Encoding: latin1
Client Version: 5.0.16
Protocol Version: 10
Server Version: 5.0.16-nt
mysqli
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 : 2.0.55.0
szModName : php5ts.dll
szModVer : 5.1.0.0
offset : 00008be4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35388&edit=1