/PHP-8.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct.phpt | 46 $dsn = PDO_MYSQL_TEST_DSN; 56 $dsn = 'mysql:'; 60 $dsn = PDO_MYSQL_TEST_DSN; 64 $db = new PDO($dsn, $user, $pass); 67 $dsn = 'mysql:invalid=foo'; 82 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 96 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 113 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 127 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti… 186 $dsn = MySQLPDOTest::getDSN(); [all …]
|
H A D | pdo_mysql___construct_ini.phpt | 14 pdo.dsn.mysql="mysql:dbname=phptest;socket=/tmp/mysql.sock" 21 foreach ($values as $name => $dsn) 22 if ('pdo.dsn.mysql' == $name) { 23 printf("pdo.dsn.mysql=%s\n", $dsn); 29 $dsn = ini_get('pdo.dsn.mysql'); 30 $found = ($dsn !== false); 34 printf("pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()\n"); 36 if (MySQLPDOTest::getDSN() == $dsn) { 56 pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()
|
H A D | bug_50323.phpt | 19 $dsn = substr($original, 24 $parts = explode(';', $dsn); 35 $dsn = 'mysql:'; 37 $dsn .= sprintf('%s=%s;', $k, $v); 39 $dsn = substr($dsn, 0, strlen($dsn) -1); 41 return $dsn; 46 $dsn = changeDSN(getenv('PDOTEST_DSN'), array('dbname' => 'crazy;;dbname')); 50 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 | 19 $dsn = MySQLPDOTest::getDSN(); 25 fwrite($fp, $dsn); 33 $uri, $dsn, 41 fwrite($fp, $dsn . chr(0) . ';host=nonsense;unix_socket=nonsense'); 49 $uri, $dsn,
|
H A D | pdo_mysql___construct_options.phpt | 16 $dsn = MySQLPDOTest::getDSN(); 21 $db = new PDO($dsn, $user, $pass, array($option => $value)); 37 $dsn = MySQLPDOTest::getDSN(); 73 if (NULL !== ($db = @new PDO($dsn, $user, $pass, 'wrong type'))) 78 if (!is_object($db = new PDO($dsn, $user, $pass, array()))) 82 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true)))) 85 $db = new PDO($dsn, $user, $pass); 96 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => true)); 100 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => false)); 115 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true)); [all …]
|
H A D | bug_43371.phpt | 14 $dsn = MySQLPDOTest::getDSN(); 15 $db = new PDO($dsn, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR_PERSISTENT => true));
|
H A D | bug_64705.phpt | 7 $dsn = 'mysql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass'; 9 $pdo = new \PDO($dsn, null, null);
|
H A D | pdo_mysql_pconnect.phpt | 16 $dsn = MySQLPDOTest::getDSN(); 20 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 21 $db2 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 42 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 66 $db1 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => false)); 72 @$db2 = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 84 $connections[$i] = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
|
H A D | pdo_mysql_attr_init_command.phpt | 17 $dsn = MySQLPDOTest::getDSN(); 22 $db = new PDO($dsn, $user, $pass); 27 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_INIT_COMMAND => $create));
|
H A D | pdo_mysql_local_infile_set_on.phpt | 15 $dsn = MySQLPDOTest::getDSN(); 19 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_LOCAL_INFILE => true));
|
H A D | bug77289.phpt | 14 $dsn = MySQLPDOTest::getDSN(); 17 $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
|
/PHP-8.2/ext/odbc/tests/ |
H A D | config.inc | 3 $dsn = getenv("ODBC_TEST_DSN"); 7 if (false === $dsn) { 8 $dsn = 'myodbc3';
|
H A D | odbc_persistent_close.phpt | 12 $conn = odbc_connect($dsn, $user, $pass); 48 $conn = odbc_pconnect($dsn, $user, $pass); 53 $conn = odbc_pconnect($dsn, $user, $pass); 58 $conn = odbc_pconnect($dsn, $user, $pass);
|
/PHP-8.2/ext/pdo/tests/ |
H A D | pdo_dsn_containing_credentials.phpt | 2 PDO Common: Pass credentials in dsn instead of constructor params 32 echo "using credentials in dsn: done\n"; 41 echo "ignoring credentials in dsn: done\n"; 51 using credentials in dsn: done 52 ignoring credentials in dsn: done
|
H A D | sensitive_parameter.phpt | 8 new PDO('dsn', 'username', 'password'); 14 PDOException: PDO::__construct(): Argument #1 ($dsn) must be a valid data source name in %s:%d 16 #0 %s(%d): PDO->__construct('dsn', 'username', Object(SensitiveParameterValue))
|
/PHP-8.2/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 | 7 $dsn = 'sqlite:./bug64705NonExistingDir/bug64705NonExistingDb'; 9 $pdo = new \PDO($dsn, null, null);
|
/PHP-8.2/ext/pdo_pgsql/tests/ |
H A D | bug_64705.phpt | 7 $dsn = 'pgsql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass'; 9 $pdo = new \PDO($dsn, null, null);
|
H A D | bug69362.phpt | 12 $dsn = getenv('PDOTEST_DSN'); 13 if (empty($dsn)) die('skip no dsn found in env'); 32 $testConn = new PDO($dsn, $user, $pass);
|
/PHP-8.2/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.2/ext/pdo_oci/tests/ |
H A D | checkliveness.phpt | 17 $dsn = getenv('PDOTEST_DSN'); 23 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true)); 32 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_PERSISTENT => true));
|
/PHP-8.2/ext/pdo_firebird/tests/ |
H A D | payload_test.phpt | 15 $dsn = "firebird:dbname=inet://$address/test"; 19 new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
H A D | bug_76448.phpt | 15 $dsn = "firebird:dbname=inet://$address/test"; 19 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|
H A D | bug_76449.phpt | 15 $dsn = "firebird:dbname=inet://$address/test"; 19 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
|