xref: /PHP-8.3/ext/pdo_mysql/tests/bug71569.phpt (revision b5a14e6c)
1--TEST--
2Bug #71569 (#70389 fix causes segmentation fault)
3--EXTENSIONS--
4pdo_mysql
5--SKIPIF--
6<?php
7require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
8MySQLPDOTest::skip();
9?>
10--FILE--
11<?php
12require(__DIR__. DIRECTORY_SEPARATOR . 'config.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?>
23--EXPECT--
24SQLSTATE[42000] [1065] Query was empty
25