You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in %s on line %d
30
+
31
+
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error in %s on line %d
29
32
bool(false)
30
33
31
34
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in %s on line %d
35
+
36
+
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error in %s on line %d
32
37
bool(false)
33
38
34
39
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: PDO::ATTR_STATEMENT_CLASS requires format array(classname, array(ctor_args)); the classname must be a string specifying an existing class in %s on line %d
40
+
41
+
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error in %s on line %d
35
42
bool(false)
36
43
37
44
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error: attribute value must be an integer in %s on line %d
45
+
46
+
Warning: PDO::setAttribute(): SQLSTATE[HY000]: General error in %s on line %d
$stmt = $db->query(sprintf('SELECT * FROM %s; INSERT INTO %s(id) VALUES (3)', $table, $table));
39
41
var_dump($stmt);
40
42
$info = $db->errorInfo();
@@ -49,7 +51,7 @@ error_reporting=E_ALL
49
51
$db->exec(sprintf('DROP TABLE IF EXISTS %s', $table));
50
52
print"done!";
51
53
?>
52
-
--EXPECT--
54
+
--EXPECTF--
53
55
string(5) "00000"
54
56
array(2) {
55
57
[0]=>
@@ -70,6 +72,8 @@ array(1) {
70
72
string(1) "1"
71
73
}
72
74
}
75
+
76
+
Warning: PDO::query(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO %s(id) VALUES (3)' at line 1 in %s on line %d
0 commit comments