Home
last modified time | relevance | path

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

123

/PHP-8.2/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct.phpt46 $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 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.phpt19 $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 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.phpt19 $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 Dpdo_mysql___construct_options.phpt16 $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 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_pconnect.phpt16 $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 Dpdo_mysql_attr_init_command.phpt17 $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 Dpdo_mysql_local_infile_set_on.phpt15 $dsn = MySQLPDOTest::getDSN();
19 $db = new PDO($dsn, $user, $pass, array(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-8.2/ext/odbc/tests/
H A Dconfig.inc3 $dsn = getenv("ODBC_TEST_DSN");
7 if (false === $dsn) {
8 $dsn = 'myodbc3';
H A Dodbc_persistent_close.phpt12 $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 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-8.2/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);
/PHP-8.2/ext/pdo_pgsql/tests/
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.phpt12 $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 Dconfig.inc17 $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 Dcheckliveness.phpt17 $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 Dpayload_test.phpt15 $dsn = "firebird:dbname=inet://$address/test";
19 new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
H A Dbug_76448.phpt15 $dsn = "firebird:dbname=inet://$address/test";
19 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
H A Dbug_76449.phpt15 $dsn = "firebird:dbname=inet://$address/test";
19 $dbh = new PDO($dsn, $username, $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);

Completed in 31 milliseconds

123