#35457 [Fbk->Opn]: mysqli_report crashes apache
ID: 35457
User updated by: David_Canos at ono dot com
Reported By: David_Canos at ono dot com
-Status: Feedback
+Status: Open
Bug Type: MySQLi related
Operating System: Windows 2000
PHP Version: 5.1.1
New Comment:
is not possible for me to reproduce the bug on a *nix OS until next
week. sorry
Previous Comments:
------------------------------------------------------------------------
[2005-11-28 18:53:19] tony2001@php.net
Are you able to reproduce it on a *nix OS and get the GDB backtrace ?
------------------------------------------------------------------------
[2005-11-28 18:45:31] David_Canos at ono dot com
Description:
------------
using: apache 2.0.49, mysql 5.0.16, php 5.1.1
When using mysqli->report() with the flags MYSQLI_REPORT_ALL or
MYSQLI_REPORT_ERROR
Apache crashes if ocurres an error in the query.
It seems to be very close to that bug
http://bugs.php.net/bug.php?id=35388
Reproduce code:
---------------
<?php
mysqli_report(MYSQLI_REPORT_ALL);
$mysqli = new mysqli("correctHost", "correctUsername",
"correctPasswd",
"correctSchema");
/* apache crashes if a query is not right, ie:*/
$result=$mysqli->query("SELECT * FROM IncorrectTable");
$result->close();
$mysqli->close();
?>
Expected result:
----------------
some error message.
Actual result:
--------------
Windows shows an error message and shutdown Apache. And order you to
restart Apache.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35457&edit=1
Thread (5 messages)