Home
last modified time | relevance | path

Searched refs:dsn (Results 1 – 25 of 65) sorted by relevance

123

/PHP-8.0/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct.phpt44 $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 Dpdo_mysql___construct_ini.phpt13 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 Dbug_50323.phpt17 $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 Dmysql_pdo_test.inc9 $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 Dpdo_mysql___construct_uri.phpt18 $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 Dpdo_mysql___construct_options.phpt15 $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 Dbug_43371.phpt13 $dsn = MySQLPDOTest::getDSN();
14 $db = new PDO($dsn, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR_PERSISTENT => true));
H A Dbug_64705.phpt9 $dsn = 'mysql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass';
11 $pdo = new \PDO($dsn, null, null);
H A Dpdo_mysql_attr_init_command.phpt16 $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 Dpdo_mysql_pconnect.phpt15 $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 Dpdo_mysql_local_infile_default_off.phpt14 $dsn = MySQLPDOTest::getDSN();
18 $db = new PDO($dsn, $user, $pass);
H A Dpdo_mysql_local_infile_set_on.phpt14 $dsn = MySQLPDOTest::getDSN();
18 $db = new PDO($dsn, $user, $pass, array(PDO::MYSQL_ATTR_LOCAL_INFILE => true));
H A Dbug77289.phpt13 $dsn = MySQLPDOTest::getDSN();
16 $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
/PHP-8.0/ext/odbc/tests/
H A Dconfig.inc6 $dsn = getenv("ODBC_TEST_DSN");
10 if (false === $dsn) {
11 $dsn = 'myodbc3';
H A Dbug80152.phpt9 $conn = odbc_connect($dsn, $user, $pass);
21 $conn = odbc_connect($dsn, $user, $pass);
H A Dbug80147.phpt9 $conn = odbc_connect($dsn, $user, $pass);
23 $conn = odbc_connect($dsn, $user, $pass);
/PHP-8.0/ext/pdo/tests/
H A Dpdo_dsn_containing_credentials.phpt2 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 Dbug43831.phpt9 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 Dbug_64705.phpt9 $dsn = 'sqlite:./bug64705NonExistingDir/bug64705NonExistingDb';
11 $pdo = new \PDO($dsn, null, null);
/PHP-8.0/ext/pdo_pgsql/tests/
H A Dbug_64705.phpt9 $dsn = 'pgsql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass';
11 $pdo = new \PDO($dsn, null, null);
H A Dbug69362.phpt10 $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 Dconfig.inc17 $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 Dcheckliveness.phpt15 $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 Dpayload_test.phpt17 $dsn = "firebird:dbname=inet://$address/test";
21 new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
H A Dbug_76452.phpt12 $dsn = "firebird:dbname=inet://$address/test";
16 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);

Completed in 33 milliseconds

123