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 f15d527 commit 69018daCopy full SHA for 69018da
ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt
@@ -58,8 +58,12 @@ if (MySQLPDOTest::isPDOMySQLnd())
58
59
try_buffer_size(1, -1);
60
try_buffer_size(2, 1000);
61
- try_buffer_size(3, NULL);
62
try_buffer_size(4, 2000);
+ try {
63
+ try_buffer_size(3, NULL);
64
+ } catch (TypeError $e) {
65
+ echo $e->getMessage(), "\n";
66
+ }
67
68
print "done!";
69
?>
@@ -72,6 +76,6 @@ $db->exec('DROP TABLE IF EXISTS test');
72
76
--EXPECTF--
73
77
[001] id = 1, val = 0123456789... (length: %d)
74
78
[002] id = 1, val = 0123456789... (length: 1000)
75
-[003] id = 1, val = 0123456789... (length: %d)
79
[004] id = 1, val = 0123456789... (length: 2000)
80
+Attribute value must be of type int for selected attribute, null given
81
done!
0 commit comments