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.
2 parents 7f70911 + bfe63f5 commit 4a1c50bCopy full SHA for 4a1c50b
ext/pdo/tests/gh8626.phpt
@@ -24,20 +24,14 @@ $stmt = $db->prepare('INSERT INTO test VALUES(?)');
24
// fail
25
var_dump($stmt->execute([null]), $stmt->errorCode());
26
$errorInfo = $stmt->errorInfo();
27
-if (isset($errorInfo[3])) {
28
- unset($errorInfo[3]); // odbc
29
-}
30
-var_dump($errorInfo);
+var_dump(array_slice($errorInfo, 0, 3)); // odbc, dblib
31
32
$stmt->closeCursor(); // sqlite
33
34
// success
35
var_dump($stmt->execute([1]), $stmt->errorCode());
36
37
38
39
40
41
?>
42
===DONE===
43
--EXPECTF--
0 commit comments