-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
Description
<?php
$mysql = new mysqli('localhost', 'root', '***', 'test');
$rs = $mysql->query('select * from `mydb` limit 10');
while ($row = $rs->fetch_object('\\Ds\\Map'))
{
print_r($row);
}output:
PHP Recoverable fatal error: Object of class Ds\Map could not be converted to boolean in /test.php on line 4
<?php
$mysql = new mysqli('localhost', 'root', '***', 'test');
$rs = $mysql->query('select * from `mydb` limit 10');
while (null !== ($row = $rs->fetch_object('\\Ds\\Map')))
{
print_r($row);
var_dump($row->id);
var_dump(isset($row['id']));
}output:
Ds\Map Object
(
)
string(1) "1"
bool(false)
Ds\Map Object
(
)
string(1) "2"
bool(false)