--TEST-- PDO Common: Bug #60665 (call to empty() on NULL result using PDO::FETCH_LAZY returns false) --EXTENSIONS-- pdo --SKIPIF-- --FILE-- getAttribute(PDO::ATTR_DRIVER_NAME)) { case 'oci': $from = ' FROM DUAL'; break; case 'firebird': $from = ' FROM RDB$DATABASE'; break; default: $from = ''; break; } $statement = $db->prepare("SELECT NULL AS null_value, 0 AS zero, 1 AS one $from"); $statement->execute(); $row = $statement->fetch(PDO::FETCH_LAZY); var_dump( empty($row->null_value), empty($row->zero), !empty($row->one), empty($row->missing), !isset($row->null_value), isset($row->zero), isset($row->one), !isset($row->missing) ); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)