xref: /PHP-7.3/ext/pdo_mysql/tests/bug_43371.phpt (revision 02fee775)
1--TEST--
2Bug #43371 (Memory errors in PDO constructor)
3--SKIPIF--
4<?php
5require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
6require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
7MySQLPDOTest::skip();
8?>
9--FILE--
10<?php
11require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
12
13$dsn = MySQLPDOTest::getDSN();
14$db = new PDO($dsn, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR_PERSISTENT => true));
15
16print "done!";
17?>
18--EXPECT--
19done!
20