1--TEST-- 2Bug #70389 (PDO constructor changes unrelated variables) 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$flags = [ 14 PDO::MYSQL_ATTR_FOUND_ROWS => true, 15 PDO::MYSQL_ATTR_LOCAL_INFILE => true, 16 PDO::ATTR_PERSISTENT => true, 17]; 18 19$std = new stdClass(); 20$std->flags = $flags; 21 22new PDO(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, $flags); 23var_dump($flags); 24?> 25--EXPECTF-- 26array(3) { 27 [%d]=> 28 bool(true) 29 [%d]=> 30 bool(true) 31 [%d]=> 32 bool(true) 33} 34