/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct.phpt | 44 $dsn = PDO_MYSQL_TEST_DSN; 54 $dsn = 'mysql:'; 58 $dsn = PDO_MYSQL_TEST_DSN; 62 $db = new PDO($dsn, $user, $pass); 65 $dsn = 'mysql:invalid=foo'; 80 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 94 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 111 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 125 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 184 $dsn = MySQLPDOTest::getDSN(); [all …]
|
H A D | pdo_mysql___construct_ini.phpt | 13 pdo.dsn.mysql="mysql:dbname=phptest;socket=/tmp/mysql.sock" 20 foreach ($values as $name => $dsn) 21 if ('pdo.dsn.mysql' == $name) { 22 printf("pdo.dsn.mysql=%s\n", $dsn); 28 $dsn = ini_get('pdo.dsn.mysql'); 29 $found = ($dsn !== false); 33 printf("pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()\n"); 35 if (MySQLPDOTest::getDSN() == $dsn) { 55 pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()
|
H A D | bug_50323.phpt | 17 $dsn = substr($original, 22 $parts = explode(';', $dsn); 33 $dsn = 'mysql:'; 35 $dsn .= sprintf('%s=%s;', $k, $v); 37 $dsn = substr($dsn, 0, strlen($dsn) -1); 39 return $dsn; 44 $dsn = changeDSN(getenv('PDOTEST_DSN'), array('dbname' => 'crazy;;dbname')); 48 new PDO($dsn, $user, $pass);
|
H A D | mysql_pdo_test.inc | 9 $dsn = self::getDSN($mydsn); 24 $db = new $classname($dsn, $user, $pass, $attr); 26 die("Could not create PDO object (DSN=$dsn, user=$user)\n"); 54 $dsn = substr(PDO_MYSQL_TEST_DSN, 59 $parts = explode(';', $dsn); 70 $dsn = 'mysql:'; 72 $dsn .= sprintf('%s=%s;', $k, $v); 75 $dsn .= $addition; 77 $dsn = substr($dsn, 0, strlen($dsn) -1); 79 return $dsn;
|
H A D | pdo_mysql___construct_uri.phpt | 18 $dsn = MySQLPDOTest::getDSN(); 24 fwrite($fp, $dsn); 32 $uri, $dsn, 40 fwrite($fp, $dsn . chr(0) . ';host=nonsense;unix_socket=nonsense'); 48 $uri, $dsn,
|
H A D | pdo_mysql___construct_options.phpt | 15 $dsn = MySQLPDOTest::getDSN(); 20 $db = new PDO($dsn, $user, $pass, array($option => $value)); 36 $dsn = MySQLPDOTest::getDSN(); 72 if (NULL !== ($db = @new PDO($dsn, $user, $pass, 'wrong type'))) 77 if (!is_object($db = new PDO($dsn, $user, $pass, array()))) 81 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true)))) 84 $db = new PDO($dsn, $user, $pass); 95 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => true)); 99 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => false)); 114 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true)); [all …]
|
H A D | bug_43371.phpt | 13 $dsn = MySQLPDOTest::getDSN(); 14 $db = new PDO($dsn, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR_PERSISTENT => true));
|
H A D | bug_64705.phpt | 9 $dsn = 'mysql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass'; 11 $pdo = new \PDO($dsn, null, null);
|
H A D | pdo_mysql_attr_init_command.phpt | 16 $dsn = MySQLPDOTest::getDSN(); 21 $db = new PDO($dsn, $user, $pass); 26 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => $create));
|
H A D | pdo_mysql_pconnect.phpt | 15 $dsn = MySQLPDOTest::getDSN(); 19 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 20 $db2 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 41 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 65 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => false)); 71 @$db2 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 83 $connections[$i] = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
|
H A D | pdo_mysql_local_infile_default_off.phpt | 14 $dsn = MySQLPDOTest::getDSN(); 18 $db = new PDO($dsn, $user, $pass);
|
H A D | pdo_mysql_local_infile_set_on.phpt | 14 $dsn = MySQLPDOTest::getDSN(); 18 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_LOCAL_INFILE => true));
|
H A D | bug77289.phpt | 13 $dsn = MySQLPDOTest::getDSN(); 16 $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
|
/PHP-8.0/ext/odbc/tests/ |
H A D | config.inc | 6 $dsn = getenv("ODBC_TEST_DSN"); 10 if (false === $dsn) { 11 $dsn = 'myodbc3';
|
H A D | bug80152.phpt | 9 $conn = odbc_connect($dsn, $user, $pass); 21 $conn = odbc_connect($dsn, $user, $pass);
|
H A D | bug80147.phpt | 9 $conn = odbc_connect($dsn, $user, $pass); 23 $conn = odbc_connect($dsn, $user, $pass);
|
/PHP-8.0/ext/pdo/tests/ |
H A D | pdo_dsn_containing_credentials.phpt | 2 PDO Common: Pass credentials in dsn instead of constructor params 31 echo "using credentials in dsn: done\n"; 40 echo "ignoring credentials in dsn: done\n"; 50 using credentials in dsn: done 51 ignoring credentials in dsn: done
|
/PHP-8.0/ext/pdo_sqlite/tests/ |
H A D | bug43831.phpt | 9 function __construct($dsn) { 10 parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT => true)); 15 function __construct($dsn) { 16 parent::__construct($dsn, null, null, array(PDO::ATTR_PERSISTENT => true));
|
H A D | bug_64705.phpt | 9 $dsn = 'sqlite:./bug64705NonExistingDir/bug64705NonExistingDb'; 11 $pdo = new \PDO($dsn, null, null);
|
/PHP-8.0/ext/pdo_pgsql/tests/ |
H A D | bug_64705.phpt | 9 $dsn = 'pgsql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass'; 11 $pdo = new \PDO($dsn, null, null);
|
H A D | bug69362.phpt | 10 $dsn = getenv('PDOTEST_DSN'); 11 if (empty($dsn)) die('skip no dsn found in env'); 30 $testConn = new PDO($dsn, $user, $pass);
|
/PHP-8.0/ext/pdo_dblib/tests/ |
H A D | config.inc | 17 $dsn = getenv('PDO_DBLIB_TEST_DSN'); 19 $dsn = 'dblib:host=localhost;dbname=test'; 35 $db = new PDO($dsn, $user, $pass);
|
/PHP-8.0/ext/pdo_oci/tests/ |
H A D | checkliveness.phpt | 15 $dsn = getenv('PDOTEST_DSN'); 21 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 30 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
|
/PHP-8.0/ext/pdo_firebird/tests/ |
H A D | payload_test.phpt | 17 $dsn = "firebird:dbname=inet://$address/test"; 21 new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
H A D | bug_76452.phpt | 12 $dsn = "firebird:dbname=inet://$address/test"; 16 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|