summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-03-17 11:26:41 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-03-17 11:26:41 +0100
commit69018da09b4b9bf5b481292f34c792f48c1d76de (patch)
tree00c0fb5243ca7972f97e11b4a6807ac8361e839e
parentf15d52796ebe7e44fef67b733422b85d69581b08 (diff)
downloadphp-git-69018da09b4b9bf5b481292f34c792f48c1d76de.tar.gz
Fix PDO test under libmysqlclient
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt b/ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt
index 73e657fff9..d4ea033c08 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_attr_max_buffer_size.phpt
@@ -58,8 +58,12 @@ if (MySQLPDOTest::isPDOMySQLnd())
try_buffer_size(1, -1);
try_buffer_size(2, 1000);
- try_buffer_size(3, NULL);
try_buffer_size(4, 2000);
+ try {
+ try_buffer_size(3, NULL);
+ } catch (TypeError $e) {
+ echo $e->getMessage(), "\n";
+ }
print "done!";
?>
@@ -72,6 +76,6 @@ $db->exec('DROP TABLE IF EXISTS test');
--EXPECTF--
[001] id = 1, val = 0123456789... (length: %d)
[002] id = 1, val = 0123456789... (length: 1000)
-[003] id = 1, val = 0123456789... (length: %d)
[004] id = 1, val = 0123456789... (length: 2000)
+Attribute value must be of type int for selected attribute, null given
done!