From: [EMAIL PROTECTED]
Operating system: Windows XP Home SP2
PHP version: 5.1.0
PHP Bug Type: MySQLi related
Bug description: MySQLi crashes apache on new object if passed incorrect
access details
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 bug report at http://bugs.php.net/?id=35388&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35388&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=35388&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=35388&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35388&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35388&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35388&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35388&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35388&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35388&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35388&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35388&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35388&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35388&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35388&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35388&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35388&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35388&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35388&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35388&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35388&r=mysqlcfg