Home
last modified time | relevance | path

Searched refs:link (Results 76 – 100 of 769) sorted by relevance

12345678910>>...31

/PHP-5.6/ext/mysqli/tests/
H A Dmysqli_pam_sha256_public_key_option_invalid.phpt24 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
38 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
42 die(sprintf("skip Failed to check RSA pub key, [%d] %s\n", $link->errno, $link->error));
69 die(sprintf("skip CREATE USER failed [%d] %s", $link->errno, $link->error));
74 die(sprintf("skip SET PASSWORD failed [%d] %s", $link->errno, $link->error));
80 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
88 $link->close();
96 $link = mysqli_init();
108 printf("[%03d + 003] [%d] %s\n", $offset, $link->errno, $link->error);
112 printf("[%03d + 004] [%d] %s\n", $offset, $link->errno, $link->error);
[all …]
H A Dmysqli_rollback.phpt15 if (!have_innodb($link))
16 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
23 $link = NULL;
28 if (!is_null($tmp = @mysqli_rollback($link)))
42 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
45 printf("[007] Cannot create test table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
48 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
50 $tmp = mysqli_rollback($link);
55 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D040.phpt15 mysqli_select_db($link, $db);
17 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
19 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')");
21 mysqli_real_query($link, "SELECT * FROM test_result");
22 if (mysqli_field_count($link)) {
23 $result = mysqli_store_result($link);
30 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
31 mysqli_close($link);
40 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result"))
41 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_execute_stored_proc.phpt21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
26 printf("[011] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
39 printf("[015] Cannot prepare SELECT, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
58 printf("[010] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
96 printf("[027] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
136 printf("[036] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
181 mysqli_close($link);
[all …]
H A Dmysqli_change_user.phpt14 $link = NULL;
22 if (!is_null($tmp = @mysqli_change_user($link, $link)))
25 if (!is_null($tmp = @mysqli_change_user($link, $link, $link)))
28 if (!is_null($tmp = @mysqli_change_user($link, $link, $link, $link, $link)))
54 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
64 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
76 mysqli_close($link);
99 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
119 printf("[021] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
129 printf("[024] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dbug49027.phpt12 $link = mysqli_init();
13 if (!mysqli_options($link, MYSQLI_INIT_COMMAND, "SELECT 1")) {
17 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
21 var_dump($link->query("SELECT 42")->fetch_row());
23 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 mysqli_close($link);
30 $link = mysqli_init();
39 if (!$res = mysqli_query($link, "SELECT id FROM test"))
40 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D012.phpt15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
17 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"))
18 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
26 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
43 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result");
44 mysqli_close($link);
53 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"))
54 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D010.phpt15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
17 if (!mysqli_query($link, "SET sql_mode=''"))
18 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
20 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
21 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
47 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
48 mysqli_close($link);
58 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D013.phpt15 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_result");
40 $result = mysqli_query($link, "select * from test_bind_result");
50 mysqli_get_server_version($link) > 50000)
55 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result");
56 mysqli_close($link);
66 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_use_result.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_use_result($link)))
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 if (!is_object($res = mysqli_use_result($link)))
29 gettype($res), $res, mysqli_errno($link), mysqli_error($link));
33 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
37 if (!mysqli_query($link, "DELETE FROM test"))
38 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 gettype($res), $res, mysqli_errno($link), mysqli_error($link));
45 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_select_db.phpt15 $link = NULL;
35 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
38 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
59 if (!$link->select_db($db))
63 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
66 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
86 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
89 printf("[016] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_execute_stored_proc_next_result.phpt25 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
30 printf("[005] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
58 printf("[013] [%d] %s\n", $link->errno, $link->error);
61 printf("[004] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
65 printf("[014] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
89 if (!mysqli_more_results($link) || !mysqli_next_result($link))
90 printf("[020] [%d] %s\n", $link->errno, $link->error);
107 printf("[024] [%d] %s\n", $link->errno, $link->error);
110 printf("[025] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
113 mysqli_close($link);
[all …]
H A Dmysqli_change_user_old.phpt21 $link = NULL;
29 if (!is_null($tmp = @mysqli_change_user($link, $link)))
32 if (!is_null($tmp = @mysqli_change_user($link, $link, $link)))
35 if (!is_null($tmp = @mysqli_change_user($link, $link, $link, $link, $link)))
53 mysqli_close($link);
63 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
73 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
83 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
89 mysqli_close($link);
99 mysqli_close($link);
[all …]
H A Dmysqli_stmt_bind_result_format.phpt20 mysqli_errno($link), mysqli_error($link));
29 mysqli_errno($link), mysqli_error($link));
42 mysqli_errno($link), mysqli_error($link));
55 mysqli_errno($link), mysqli_error($link));
154 mysqli_close($link);
205 printf("[300] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
237 printf("[301] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
246 printf("[302] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
251 printf("[303] [%d] %s\n", mysqli_stmt_errno($link), mysqli_stmt_error($link));
285 printf("[307] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_poll.phpt22 return $link;
31 $l = array($link);
97 $links = array($link);
98 $errors = array($link);
101 mysqli_close($link);
104 $links = array($link);
108 mysqli_close($link);
113 $links = array($link, $link);
114 $errors = array($link, $link);
122 $errors = array($link, $link);
[all …]
H A Dmysqli_reconnect.phpt40 printf("[004] Cannot set wait_timeout, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 mysqli_errno($link), mysqli_error($link));
48 mysqli_errno($link), mysqli_error($link));
53 mysqli_errno($link), mysqli_error($link));
76 mysqli_errno($link), mysqli_error($link));
80 mysqli_errno($link), mysqli_error($link));
85 $row['_dbname'], $db, mysqli_errno($link), mysqli_error($link));
114 mysqli_errno($link), mysqli_error($link));
118 mysqli_errno($link), mysqli_error($link));
123 $row['_dbname'], $db, mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_character_set.phpt22 $link = NULL;
28 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 mysqli_errno($link), mysqli_error($link));
57 printf("[006 + %s] [%d] %s\n", $k, mysqli_errno($link), mysqli_error($link));
66 printf("[008 + %s] [%d] %s\n", $k, mysqli_errno($link), mysqli_error($link));
75 printf("[009 + %s] [%d] %s\n", $k, mysqli_errno($link), mysqli_error($link));
81 printf("[010 + %s] [%d] %s\n", $k, mysqli_errno($link), mysqli_error($link));
86 printf("[011 + %s] [%d] %s\n", $k, mysqli_errno($link), mysqli_error($link));
91 mysqli_errno($link), mysqli_error($link));
96 mysqli_errno($link), mysqli_error($link));
[all …]
H A D029.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 mysqli_select_db($link, $db);
17 mysqli_query($link, "DROP TABLE IF EXISTS general_test");
18 mysqli_query($link, "CREATE TABLE general_test (a INT)");
19 mysqli_query($link, "INSERT INTO general_test VALUES (1),(2),(3)");
21 $afc = mysqli_affected_rows($link);
25 mysqli_query($link, "DROP TABLE IF EXISTS general_test");
26 mysqli_close($link);
35 if (!mysqli_query($link, "DROP TABLE IF EXISTS general_test"))
36 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D032.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 mysqli_select_db($link, $db);
17 mysqli_query($link, "DROP TABLE IF EXISTS general_test");
18 mysqli_query($link, "CREATE TABLE general_test (a INT)");
19 mysqli_query($link, "INSERT INTO general_test VALUES (1),(2),(3)");
21 $afc = mysqli_info($link);
25 mysqli_query($link, "DROP TABLE IF EXISTS general_test");
26 mysqli_close($link);
35 if (!mysqli_query($link, "DROP TABLE IF EXISTS general_test"))
36 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_init.phpt11 $link = mysqli_init();
13 if (!is_object($link) && false !== $link)
14 printf("[001] Expecting object/mysqli_link or boolean/false, got %s/%s\n", gettype($link), $link);
16 if (is_object($link) && 'mysqli' != get_class($link))
17 printf("[002] Expecting object of type mysqli got object of type %s\n", get_class($link));
19 if ($link)
20 mysqli_close($link);
H A Dmysqli_set_opt.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_set_opt($link)))
22 $link = mysqli_init();
24 if (!is_null($tmp = @mysqli_set_opt($link, MYSQLI_OPT_CONNECT_TIMEOUT)))
27 if (!is_null($tmp = @mysqli_set_opt($link, "s", 'extra_my.cnf')))
36 var_dump(mysqli_set_opt($link, MYSQLI_OPT_CONNECT_TIMEOUT, 10));
37 var_dump(mysqli_set_opt($link, MYSQLI_OPT_LOCAL_INFILE, 1));
38 var_dump(mysqli_set_opt($link, MYSQLI_INIT_COMMAND, 'SET AUTOCOMMIT=0'));
42 var_dump(mysqli_set_opt($link, MYSQLI_OPT_CONNECT_TIMEOUT, 10));
43 var_dump(mysqli_set_opt($link, MYSQLI_OPT_LOCAL_INFILE, 1));
[all …]
/PHP-5.6/ext/mysql/tests/
H A Dbug53649.phpt14 die(sprintf("skip [%d] %s\n", mysql_errno($link), mysql_error($link)));
20 1148 == mysql_errno($link))
32 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
36 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
42 if (!mysql_query("SELECT 1 FROM DUAL", $link))
43 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
46 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
51 mysql_close($link);
62 if (!mysql_query($link, 'DROP TABLE IF EXISTS test', $link)) {
63 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link
[all …]
/PHP-5.6/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_basic2.phpt2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to dirs
12 Description: creates a symbolic link to the existing target with the specified name link
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
36 // name of the soft link created to $dirname
42 // testing on soft link
44 // creating soft link to $dirname
48 // checks if link created is soft link; expected: true
53 // testing on hard link
[all …]
H A Dsymlink_link_linkinfo_is_link_error2.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : error conditions - link & is_link
15 Description: creates a symbolic link to the existing target with the specified name link
20 Prototype: bool link ( string $target, string $link );
21 Description: Create a hard link
24 Description: Gets information about a link
32 // linkname used to create soft/hard link
35 echo "*** Testing link() for error conditions ***\n";
37 var_dump( link() );
40 var_dump( link($filename, $linkname, false) );
48 var_dump( link($filename, '') ); // '' as linkname
[all …]
H A Dsymlink_link_linkinfo_is_link_variation8.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link with same …
11 /* Prototype: bool symlink ( string $target, string $link );
12 Description: creates a symbolic link to the existing target with the specified name link
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
31 // temp link name used
42 // delete link
51 // temp link name used
62 // delete link
[all …]

Completed in 54 milliseconds

12345678910>>...31