xref: /php-src/ext/pdo_mysql/tests/bug71569.phpt (revision 4bb75d56)
1--TEST--
2Bug #71569 (#70389 fix causes segmentation fault)
3--EXTENSIONS--
4pdo_mysql
5--SKIPIF--
6<?php
7require_once __DIR__ . '/inc/mysql_pdo_test.inc';
8MySQLPDOTest::skip();
9?>
10--FILE--
11<?php
12require_once __DIR__ . '/inc/mysql_pdo_test.inc';
13
14try {
15    new PDO(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, [
16        PDO::MYSQL_ATTR_INIT_COMMAND => null,
17    ]);
18} catch (PDOException $e) {
19    echo $e->getMessage();
20}
21?>
22--EXPECT--
23SQLSTATE[42000] [1065] Query was empty
24