#30088 [Opn->Fbk]: mysqli and apache combo => serious crash
| From: | derick@php.net | Date: | Wed, 15 Sep 2004 06:49:24 +0000 |
| Subject: | #30088 [Opn->Fbk]: mysqli and apache combo => serious crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66190@lists.php.net to get a copy of this message | ||
ID: 30088
Updated by: derick@php.net
Reported By: costinb at mymail dot ro
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windowx XP Prof
PHP Version: 5.0.1
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2004-09-14 19:55:36] costinb at mymail dot ro
Description:
------------
Read on
Reproduce code:
---------------
OK
Take a db object, $db = new mysqli(...);
Run a query on it:
$query = "...";
if (!($result = $db->query($query)) or !$db->num_rows) {
echo "No rows";
}
Well, that if would crash Apache 1.3 running PHP 5.0.1 unless I write
it like this:
if (!(result = $db->query($query))) {
if (!$db->num_rows) {
echo "No rows";
}
}
I reverted to PHP 5.0.0 and all worked fine once again.
Expected result:
----------------
up
Actual result:
--------------
up
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30088&edit=1