|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-15 08:49 UTC] derick@php.net
[2004-09-15 09:32 UTC] georg@php.net
[2004-09-18 19:00 UTC] costinb at mymail dot ro
[2004-09-18 20:54 UTC] georg@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 02:00:01 2025 UTC |
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