mirror of
https://github.com/php/php-src.git
synced 2026-04-26 09:28:21 +02:00
Merge branch 'PHP-5.6' into PHP-7.0
Conflicts: ext/pdo_mysql/mysql_driver.c
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
Bug #70389 (PDO constructor changes unrelated variables)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc');
|
||||
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
|
||||
MySQLPDOTest::skip();
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require(dirname(__FILE__). DIRECTORY_SEPARATOR . 'config.inc');
|
||||
|
||||
try {
|
||||
new PDO(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, [
|
||||
PDO::MYSQL_ATTR_INIT_COMMAND => null,
|
||||
]);
|
||||
} catch (PDOException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
SQLSTATE[42000] [1065] Query was empty
|
||||
Reference in New Issue
Block a user