We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfcac15 commit abfa377Copy full SHA for abfa377
ext/pdo/tests/bug_38253.phpt
@@ -28,6 +28,11 @@ $stmt = $pdo->prepare ("SELECT * FROM test38253");
28
$stmt->execute();
29
var_dump($stmt->fetchAll());
30
31
+$pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_INTO);
32
+$stmt = $pdo->prepare ("SELECT * FROM test38253");
33
+$stmt->execute();
34
+var_dump($stmt->fetchAll());
35
+
36
?>
37
--CLEAN--
38
<?php
@@ -47,3 +52,9 @@ Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch func
47
52
Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error%s on line %d
48
53
array(0) {
49
54
}
55
56
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch-into object specified. in %s on line %d
57
58
+Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error%s on line %d
59
+array(0) {
60
+}
0 commit comments