Home
last modified time | relevance | path

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

1234

/php-src/ext/odbc/tests/
H A Dodbc_connect_001.phpt8 if (strpos($dsn, '=') === false) {
19 $dsn = str_replace(";uid={$user};pwd={$pass}", '', $dsn);
22 $conn = odbc_connect($dsn, $user, $pass);
27 $conn = odbc_connect("{$dsn};uid={$user}", 'hoge', $pass);
32 $conn = odbc_connect("{$dsn};PWD={$pass}", $user, 'fuga');
47 $conn = odbc_connect("{$dsn};Uid={$user};pwD={$pass}");
52 dsn without credentials / correct user / correct password
55 dsn with correct user / incorrect user / correct password
58 dsn with correct password / correct user / incorrect password
64 dsn with correct credentials / null user / null password
[all …]
H A Dconfig.inc3 $dsn = getenv("ODBC_TEST_DSN");
7 if (false === $dsn) {
8 $dsn = 'myodbc3';
H A Dodbc_cursor_001.phpt11 $conn = odbc_connect($dsn, $user, $pass);
25 $conn = odbc_connect($dsn, $user, $pass);
H A Dodbc_commit_001.phpt12 $conn = odbc_connect($dsn, $user, $pass);
26 $conn = odbc_connect($dsn, $user, $pass);
/php-src/ext/pdo_pgsql/tests/
H A Dgh12423.phpt29 $dsn = str_replace("user={$user}", '', $dsnWithCredentials);
30 $dsn = str_replace("password={$password}", '', $dsn);
31 $dsn = rtrim($dsn);
33 echo "dsn without credentials / correct user / correct password".PHP_EOL;
41 echo "dsn with credentials / no user / no password".PHP_EOL;
49 echo "dsn with correct user / incorrect user / correct password".PHP_EOL;
74 dsn without credentials / correct user / correct password
77 dsn with credentials / no user / no password
80 dsn with correct user / incorrect user / correct password
83 dsn with correct password / correct user / incorrect password
[all …]
H A Dbug_64705.phpt7 $dsn = 'pgsql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass';
9 $pdo = new \PDO($dsn, null, null);
H A Dbug69362.phpt11 $dsn = getenv('PDOTEST_DSN');
12 if (empty($dsn)) die('skip no dsn found in env');
31 $testConn = new PDO($dsn, $user, $pass);
/php-src/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…
110 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti…
124 …try { $db = @new PDO($dsn, $user, $pass); assert(false); printf("%s\n", $dsn); } catch (PDOExcepti…
180 $dsn = MySQLPDOTest::getDSN();
[all …]
H A Dpdo_mysql___construct_ini.phpt14 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 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(PDO_MYSQL_TEST_DSN, array('dbname' => 'crazy;;dbname'));
48 new PDO($dsn, $user, $pass);
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, [$option => $value]);
34 $dsn = MySQLPDOTest::getDSN();
70 if (NULL !== ($db = @new PDO($dsn, $user, $pass, 'wrong type')))
75 if (!is_object($db = new PDO($dsn, $user, $pass, array())))
79 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true))))
82 $db = new PDO($dsn, $user, $pass);
93 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => true));
97 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => false));
112 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true));
[all …]
H A Dbug_43371.phpt14 $dsn = MySQLPDOTest::getDSN();
15 $db = new PDO($dsn, PDO_MYSQL_TEST_USER, PDO_MYSQL_TEST_PASS, array(PDO::ATTR_PERSISTENT => true));
H A Dbug_64705.phpt7 $dsn = 'mysql:host=DonotExistsHost;dbname=test;user=foo;password=wrongpass';
9 $pdo = new \PDO($dsn, null, null);
H A Dpdo_mysql_attr_init_command.phpt16 $dsn = MySQLPDOTest::getDSN();
21 $db = new PDO($dsn, $user, $pass);
25 $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, [PDO::ATTR_PERSISTENT => true]);
65 $db1 = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => false]);
71 $db2 = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
83 $connections[$i] = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
H A Dpdo_mysql_local_infile_set_on.phpt14 $dsn = MySQLPDOTest::getDSN();
18 $db = new PDO($dsn, $user, $pass, [PDO::MYSQL_ATTR_LOCAL_INFILE => true]);
H A Dbug77289.phpt14 $dsn = MySQLPDOTest::getDSN();
17 $pdo = new PDO($dsn, $user, $pass, [PDO::ATTR_PERSISTENT => true]);
/php-src/ext/pdo_odbc/tests/
H A Dbasic_connection.phpt9 $dsn = getenv('PDO_ODBC_TEST_DSN');
10 if (!$dsn || strpos($dsn, '=') === false) {
24 echo "dsn without credentials / correct user / correct password\n";
33 echo "dsn with credentials / no user / no password\n";
42 echo "dsn with correct user / incorrect user / correct password\n";
51 echo "dsn with correct password / correct user / incorrect password\n";
70 dsn without credentials / correct user / correct password
73 dsn with credentials / no user / no password
76 dsn with correct user / incorrect user / correct password
79 dsn with correct password / correct user / incorrect password
[all …]
/php-src/ext/pdo_dblib/tests/
H A Dconfig.inc18 $dsn = getenv('PDO_DBLIB_TEST_DSN');
20 $dsn = 'dblib:host=localhost;dbname=test';
35 return [$dsn, $user, $pass];
44 [$dsn, $user, $pass] = getCredentials();
47 $db = new $class($dsn, $user, $pass, $attributes);
59 [$dsn, $user, $pass] = getCredentials();
62 $db = PDO::connect($dsn, $user, $pass);
/php-src/ext/pdo/tests/
H A Dpdo_dsn_containing_credentials.phpt2 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 Dsensitive_parameter.phpt8 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-src/ext/pdo_mysql/tests/inc/
H A Dmysql_pdo_test.inc12 $dsn = self::getDSN($mydsn);
24 $db = $classname::connect($dsn, $user, $pass, $attr);
26 $db = new $classname($dsn, $user, $pass, $attr);
30 die("Could not create PDO object (DSN=$dsn, user=$user)\n");
61 $dsn = substr(PDO_MYSQL_TEST_DSN,
66 $parts = explode(';', $dsn);
77 $dsn = 'mysql:';
79 $dsn .= sprintf('%s=%s;', $k, $v);
82 $dsn .= $addition;
84 $dsn = substr($dsn, 0, strlen($dsn) -1);
[all …]
/php-src/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.phpt7 $dsn = 'sqlite:./bug64705NonExistingDir/bug64705NonExistingDb';
9 $pdo = new \PDO($dsn, null, null);

Completed in 37 milliseconds

1234