File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ $stmt = $pdo->prepare ("SELECT * FROM test38253");
28
28
$ stmt ->execute ();
29
29
var_dump ($ stmt ->fetchAll ());
30
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
+
31
36
?>
32
37
--CLEAN--
33
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
+ }
You can’t perform that action at this time.
0 commit comments