From: costinb at mymail dot ro
Operating system: Windowx XP Prof
PHP version: 5.0.1
PHP Bug Type: Reproducible crash
Bug description: mysqli and apache combo => serious crash
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 bug report at http://bugs.php.net/?id=30088&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30088&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30088&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30088&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30088&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30088&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30088&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30088&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30088&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30088&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30088&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30088&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30088&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30088&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30088&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30088&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30088&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30088&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30088&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30088&r=mysqlcfg