php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35457 mysqli_report() crashes when there is an error in the query
Submitted: 2005-11-28 18:45 UTC Modified: 2005-12-07 01:00 UTC
From: David_Canos at ono dot com Assigned: georg (profile)
Status: No Feedback Package: MySQLi related
PHP Version: 5.1.1 OS: Windows 2000
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: David_Canos at ono dot com
New email:
PHP Version: OS:

 

 [2005-11-28 18:45 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-28 18:53 UTC] tony2001@php.net
Are you able to reproduce it on a *nix OS and get the GDB backtrace ?
 [2005-11-29 16:14 UTC] David_Canos at ono dot com
is not possible for me to reproduce the bug on a *nix OS until next week. sorry
 [2005-11-29 16:22 UTC] tony2001@php.net
Assigned to the maintainer.
 [2005-11-29 18:50 UTC] iliaa@php.net
When error occurs exception is triggered and leads to immidiate termination of the script since it is left uncaught.
I do not see a bug on Linux.
 [2005-12-07 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: Fri Apr 19 18:01:28 2024 UTC