|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-18 15:28 UTC] jani@php.net
[2008-12-31 16:11 UTC] eric at livejournal dot dk
[2009-04-13 17:26 UTC] jani@php.net
[2009-08-27 10:59 UTC] andrey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
Description: ------------ isset returns false when applied to a MySQLi_result object that does indeed exist. Reproduce code: --------------- <?php $db = new mysqli('localhost', 'test', 'test', 'test'); $result = $db->query('SELECT * FROM test;'); //contains 1 row echo $result->num_rows; if (isset($result->num_rows)) echo 'defined'; else echo 'undefined'; ?> Expected result: ---------------- 1defined Actual result: -------------- 1undefined