Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 836) sorted by relevance

12345678910>>...34

/php-src/ext/standard/tests/url/
H A Dbug63162.phpt5 [0]=> http://user:pass@host
6 [1]=> //user:pass@host
7 [2]=> //user@host
11 var_dump(parse_url('//user:pass@host'));
12 var_dump(parse_url('//user@host'));
20 ["user"]=>
21 string(4) "user"
28 ["user"]=>
29 string(4) "user"
36 ["user"]=>
[all …]
/php-src/ext/standard/tests/strings/
H A Ddirname_variation.phpt14 "~/home/user/bar",
15 "~/home/user/bar/",
16 "~/home/user/bar.tar",
17 "~/home/user/bar.tar/",
20 "hostname:/home/user/bar.tar",
21 "hostname:/home/user/tbar.gz/",
22 "hostname:/home/user/My Pics.gz",
23 "hostname:/home/user/My Pics.gz/",
24 "hostname:/home/user/My Pics/",
25 "hostname:/home/user/My Pics",
[all …]
H A Dbasename_variation.phpt7 array("~/home/user/bar"),
8 array("~/home/user/bar", ""),
9 array("~/home/user/bar", ' '),
10 array("~/home/user/bar.tar", ".tar"),
11 array("~/home/user/bar.tar", "~"),
12 array("~/home/user/bar.tar/", "~"),
13 array("~/home/user/bar.tar/", ""),
14 array("~/home/user/bar.tar", ''),
15 array("~/home/user/bar.tar", " "),
19 array("hostname:/home/user/bar.tar", "home"),
[all …]
/php-src/ext/pdo_pgsql/tests/
H A Dgh12423.phpt19 $user = $config['ENV']['PDOTEST_USER'] ?? null;
21 if (!$user) {
23 $user = $match[1] ?? '';
29 $dsn = str_replace("user={$user}", '', $dsnWithCredentials);
43 …$db = new PDO("{$dsn} user={$user} password={$password}", null, null, [PDO::ATTR_ERRMODE => PDO::E…
49 echo "dsn with correct user / incorrect user / correct password".PHP_EOL;
51 …$db = new PDO("{$dsn} user={$user}", 'hoge', $password, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTI…
67 …$db = new PDO("{$dsn} user={$user} password={$password}", 'hoge', 'fuga', [PDO::ATTR_ERRMODE => PD…
74 dsn without credentials / correct user / correct password
77 dsn with credentials / no user / no password
[all …]
H A Dbug62479.phpt18 $user = 'pdo_test62479';
23 $db->exec("DROP USER IF EXISTS $user");
24 $db->exec("CREATE USER $user WITH PASSWORD '$pass'");
31 $testConn = new PDO($dsn, $user, $pass);
36 $db->exec("DROP USER $user");
45 $user = "pdo_test62479";
46 $template = "CREATE USER $user WITH PASSWORD '%s'";
49 // Create temp user with space in password
57 // Remove the user
58 $pdo->query("DROP USER $user");
[all …]
H A Dbug69362.phpt18 $user = 'pdo_test69362';
21 // Assume that if we can't create or drop a user, this test needs to be skipped
23 $db->exec("DROP USER IF EXISTS $user");
24 $db->exec("CREATE USER $user WITH PASSWORD '$pass'");
31 $testConn = new PDO($dsn, $user, $pass);
36 $db->exec("DROP USER $user");
45 $user = "pdo_test69362";
46 $template = "CREATE USER $user WITH PASSWORD '%s'";
49 // Create temp user with leading single quote
52 $testConn = new PDO($config['ENV']['PDOTEST_DSN'], $user, "'mypassword");
/php-src/ext/mysqli/tests/
H A Dmysqli_change_user.phpt15 $host, $user, $db, $port, $socket);
22 $host, $user, $db, $port, $socket);
30 $host, $user, $db, $port, $socket);
45 if (!$res = mysqli_query($link, 'SELECT database() AS dbname, user() AS user'))
50 if (substr($tmp['user'], 0, strlen($user)) !== $user)
51 printf("[015] Expecting user %s, got user() %s\n", $user, $tmp['user']);
62 $host, $user, $db, $port, $socket);
80 if (!$res = mysqli_query($link, 'SELECT database() AS dbname, user() AS user'))
113 if (!$res = mysqli_query($link, 'SELECT database() AS dbname, user() AS user'))
118 if (substr($tmp['user'], 0, strlen($user)) !== $user)
[all …]
H A Dmysqli_change_user_old.phpt16 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
18 $host, $user, $db, $port, $socket);
35 $host, $user, $db, $port, $socket);
47 if (true !== ($tmp = mysqli_change_user($link, $user, $passwd, $db)))
50 if (!$res = mysqli_query($link, 'SELECT database() AS dbname, user() AS user'))
55 if (substr($tmp['user'], 0, strlen($user)) !== $user)
56 printf("[015] Expecting user %s, got user() %s\n", $user, $tmp['user']);
71 $host, $user, $db, $port, $socket);
81 $host, $user, $db, $port, $socket);
89 if (!$res = mysqli_query($link, 'SELECT database() AS dbname, user() AS user'))
[all …]
H A Dmysqli_change_user_oo.phpt18 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
20 …if (false !== ($tmp = $mysqli->change_user($user . '_unknown_really', $passwd . 'non_empty', $db)))
23 if (false !== ($tmp = $mysqli->change_user($user, $passwd . '_unknown_really', $db)))
26 if (false !== ($tmp = $mysqli->change_user($user, $passwd, $db . '_unknown_really')))
30 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
42 if (true !== ($tmp = $mysqli->change_user($user, $passwd, $db)))
45 if (!$res = $mysqli->query('SELECT database() AS dbname, user() AS user'))
50 if (substr($tmp['user'], 0, strlen($user)) !== $user)
51 printf("[014] Expecting user %s, got user() %s\n", $user, $tmp['user']);
64 if (false !== ($tmp = @$mysqli->change_user($user, $passwd, $db)))
H A Dmysqli_report_new.phpt2 mysqli_report(), change user, MySQL 5.6+
9 if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
10 …die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port…
11 $host, $user, $db, $port, $socket));
30 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
31 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
32 $host, $user, $db, $port, $socket);
43 Warning: mysqli_change_user(): (%d/%d): Access denied for user '%s'@'%s' (using password: %s) in %s…
H A Dmysqli_pconn_twice.phpt19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
20 …printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
21 $host, $user, $db, $port, $socket);
23 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
37 $link = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
39 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket)))
53 if (true !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket)))
56 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket))
57 …printf("[014] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s,…
58 $host, $user, $db, $port, $socket);
[all …]
H A Dmysqli_connect_oo.phpt15 $host, $user . 'unknown_really', $db, $port, $socket);
20 // Run the following tests without an anoynmous MySQL user and use a password for the test user!
22 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
30 $mysqli = new mysqli($host, $user, $passwd, $db);
38 $mysqli = new mysqli($host, $user);
45 ini_set('mysqli.default_user', $user);
88 $host, $user . 'unknown_really', $db, $port, $socket);
96 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
105 $mysqli = new mysqli($host, $user, $passwd, $db);
114 $mysqli = new mysqli($host, $user);
[all …]
/php-src/ext/odbc/tests/
H A Dodbc_connect_001.phpt19 $dsn = str_replace(";uid={$user};pwd={$pass}", '', $dsn);
22 $conn = odbc_connect($dsn, $user, $pass);
26 echo "dsn with correct user / incorrect user / correct password\n";
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 …]
/php-src/ext/pdo_odbc/tests/
H A Dbasic_connection.phpt19 $user = getenv('PDO_ODBC_TEST_USER');
22 $dsn = str_replace(";uid={$user};pwd={$password}", '', $dsnWithCredentials);
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/opcache/tests/
H A Dphi_remove_002.phpt11 function func($blogname, $user = '' ) {
12 if (! is_object( $user ) || ( is_object($user) && ( $user->login != $blogname )) ) {
16 $result = array('user' => $user);
/php-src/Zend/tests/
H A Dget_defined_functions_basic.phpt37 if (!is_array($func["user"])) {
38 echo "TEST FAILED: no element in result array with key 'user'\n";
41 $user = $func["user"];
42 if (count($user) == 2 && in_array("foo", $user) && in_array("helloworld", $user)) {
45 echo "TEST FAILED: missing elements from 'user' array\n";
46 var_dump($user);
/php-src/tests/output/
H A Dob_implicit_flush_basic_002.phpt2 Test ob_implicit_flush() function : ensure implicit flushing does not apply to user buffers.
5 echo "*** Testing ob_implicit_flush() : ensure implicit flushing does not apply to user buffers. **…
7 // Start a user buffer
12 echo "This is being written to a user buffer.\n";
14 echo "because implicit flushing affects only the top level buffer, not user buffers.\n";
16 // Wipe the user buffer. Nothing should have been flushed.
22 *** Testing ob_implicit_flush() : ensure implicit flushing does not apply to user buffers. ***
/php-src/ext/reflection/tests/
H A Dbug33389.phpt25 Class [ <user> class Test ] {
41 Method [ <user> public method foo1 ] {
49 Method [ <user> public method foo2 ] {
57 Method [ <user> public method foo3 ] {
65 Method [ <user> public method foo4 ] {
73 Method [ <user> public method foo5 ] {
81 Method [ <user> public method bar ] {
89 Method [ <user> public method foo ] {
H A DReflectionClass_toString_002.phpt29 Class [ <user> class A ] {
45 Method [ <user> public method f ] {
53 Class [ <user> class B extends A ] {
69 Method [ <user, overwrites A, prototype A> public method f ] {
77 Class [ <user> class C extends B ] {
93 Method [ <user, inherits B, prototype A> public method f ] {
101 Class [ <user> class D extends C ] {
117 Method [ <user, overwrites B, prototype A> public method f ] {
H A Dgh9470.phpt25 Method [ <user, inherits A> public method publicMethod ] {
28 Method [ <user, inherits A> protected method protectedMethod ] {
31 Method [ <user, inherits A> private method privateMethod ] {
34 Method [ <user, inherits A> public method publicMethod ] {
37 Method [ <user, inherits A> protected method protectedMethod ] {
40 Method [ <user, inherits A> private method privateMethod ] {
H A DReflectionClass_toString_003.phpt29 Class [ <user> class A ] {
45 Method [ <user> private method f ] {
53 Class [ <user> class B extends A ] {
69 Method [ <user> private method f ] {
77 Class [ <user> class C extends B ] {
98 Class [ <user> class D extends C ] {
114 Method [ <user> private method f ] {
/php-src/ext/xml/
H A Dcompat.c40 XML_Parser parser = (XML_Parser) user; in start_element_handler()
76 XML_Parser parser = (XML_Parser) user; in start_element_handler_ns()
235 XML_Parser parser = (XML_Parser) user; in cdata_handler()
250 XML_Parser parser = (XML_Parser) user; in pi_handler()
272 XML_Parser parser = (XML_Parser) user; in unparsed_entity_decl_handler()
284 XML_Parser parser = (XML_Parser) user; in notation_decl_handler()
309 XML_Parser parser = (XML_Parser) user; in comment_handler()
335 XML_Parser parser = (XML_Parser) user; in external_entity_ref_handler()
350 XML_Parser parser = (XML_Parser) user; in get_entity()
473 parser->user = user; in XML_SetUserData()
[all …]
/php-src/ext/xsl/tests/
H A Dbug69168.phpt8 <allusers><user><uid>bob</uid></user><user><uid>joe</uid></user></allusers>
14 <xsl:for-each select="user">
41 /allusers/user[1]/uid = boba<br/>/allusers/user[2]/uid = joea<br/>
42 string(21) "/allusers/user[1]/uid"
/php-src/ext/standard/tests/file/windows_acls/
H A Dcommon.inc27 $user = getenv('USERNAME');
29 if (!$user) {
30 $user = get_current_user();
33 if (!$user) {
34 $user = exec('echo %USERNAME%');
37 return $user;
55 $user = get_username();
56 /* Current user needs to be owner of the test files. As well
66 $user = get_username();
108 $cmd = $icacls . ' ' . $path_escaped . ' /remove:d ' . $user;
[all …]
/php-src/ext/session/tests/user_session_module/
H A Dsession_set_save_handler_class_014.phpt2 Test session_set_save_handler() : calling default handler when save_handler=user
4 session.save_handler=user
13 echo "*** Testing session_set_save_handler() : calling default handler when save_handler=user ***\n…
22 Fatal error: PHP Startup: Session save handler "user" cannot be set by ini_set() in Unknown on line…
23 *** Testing session_set_save_handler() : calling default handler when save_handler=user ***

Completed in 30 milliseconds

12345678910>>...34