1--TEST-- 2enable local infile 3--SKIPIF-- 4<?php 5require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'skipif.inc'); 6require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); 7MySQLPDOTest::skip(); 8if (!MYSQLPDOTest::isPDOMySQLnd()) 9 die("skip mysqlnd only test"); 10?> 11--FILE-- 12<?php 13require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc'); 14require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc'); 15 16$dsn = MySQLPDOTest::getDSN(); 17$user = PDO_MYSQL_TEST_USER; 18$pass = PDO_MYSQL_TEST_PASS; 19 20$db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_LOCAL_INFILE => true)); 21echo var_export($db->getAttribute(PDO::MYSQL_ATTR_LOCAL_INFILE)), "\n"; 22echo "done!\n"; 23?> 24--EXPECTF-- 25true 26done! 27