Home
last modified time | relevance | path

Searched refs:link (Results 51 – 75 of 769) sorted by relevance

12345678910>>...31

/PHP-5.6/ext/mysqli/tests/
H A Dbug70384.phpt9 if ($link->server_version < 50709) {
11 intval(substr($link->server_version."", -5, 1)).
13 intval(substr($link->server_version."", -4, 2)).
15 intval(substr($link->server_version."", -2, 2)).
28 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
29 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 if (!($res = mysqli_query($link, "SELECT * FROM test"))) {
45 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_options_init_command.phpt23 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
26 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 mysqli_close($link);
36 $link = mysqli_init();
38 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
45 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
53 mysqli_close($link);
55 $link = mysqli_init();
57 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
59 mysqli_close($link);
[all …]
H A Dmysqli_stmt_bind_param.phpt23 $link = NULL;
31 if (!is_null($tmp = @mysqli_stmt_bind_param($link, $link)))
36 $stmt = mysqli_stmt_init($link);
95 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
104 printf("[%03d] [%d] %s\n", $offset, mysqli_errno($link), mysqli_error($link));
114 printf("[%03d] [%d] %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link));
136 printf("[%03d] [%d] %s\n", $offset + 5, mysqli_errno($link), mysqli_error($link));
141 printf("[%03d] [%d] %s\n", $offset + 5, mysqli_errno($link), mysqli_error($link));
328 printf("[2003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
370 printf("[2013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D006.phpt15 if (!mysqli_query($link, "SET sql_mode=''"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
18 if (!mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch"))
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
45 mysqli_close($link);
55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D007.phpt15 if (!mysqli_query($link, "SET sql_mode=''"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
45 mysqli_close($link);
55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D008.phpt15 if (!mysqli_query($link, "SET sql_mode=''"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
44 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
45 mysqli_close($link);
55 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_fetch_assoc_zerofill.phpt18 if (!mysqli_query($link, $sql)) {
25 $offset, mysqli_errno($link), mysqli_error($link));
31 $offset, mysqli_errno($link), mysqli_error($link));
57 zerofill(2, $link, 'TINYINT');
60 zerofill(5, $link, 'INT');
61 zerofill(6, $link, 'INTEGER');
62 zerofill(7, $link, 'BIGINT');
63 zerofill(8, $link, 'FLOAT');
64 zerofill(9, $link, 'DOUBLE');
67 zerofill(12, $link, 'DEC');
[all …]
H A Dmysqli_auth_pam.phpt18 if ($link->server_version < 50500)
22 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
42 printf("skip Cannot create second DB user [%d] %s", mysqli_errno($link), mysqli_error($link));
43 mysqli_close($link);
47 if (!$link->query("CREATE TABLE test (id INT)") || !$link->query("INSERT INTO test(id) VALUES (1)"))
48 die(sprintf("SKIP [%d] %s\n", $link->errno, $link->error));
54 printf("skip Cannot grant SELECT to user [%d] %s", mysqli_errno($link), mysqli_error($link));
55 mysqli_close($link);
72 printf("[002] [%d] %s\n", $link->errno, $link->error);
75 printf("[003] [%d] %s\n", $link->errno, $link->error);
[all …]
H A Dmysqli_real_escape_string_nobackslash.phpt15 …intf("[001] Cannot set NO_BACKSLASH_ESCAPES, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
17 if ('\\' !== ($tmp = mysqli_real_escape_string($link, '\\')))
20 if ('"' !== ($tmp = mysqli_real_escape_string($link, '"')))
23 if ("''" !== ($tmp = mysqli_real_escape_string($link, "'")))
26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n")))
37 mysqli_real_escape_string($link, "\\"))))
38 printf("[009] Cannot INSERT, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
47 if (!mysqli_query($link, 'SET @@sql_mode=""'))
48 …("[011] Cannot disable NO_BACKSLASH_ESCAPES, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_savepoint.phpt13 if (!have_innodb($link))
14 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
21 $link = NULL;
26 if (!is_null($tmp = @mysqli_savepoint($link)))
37 if (!is_null($tmp = @mysqli_savepoint($link, 'foo', $link)))
40 if (false !== ($tmp = mysqli_savepoint($link, '')))
44 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
47 printf("[008] Cannot create test table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 …printf("[010] Got %s - [%d] %s\n", var_dump($tmp, true), mysqli_errno($link), mysqli_error($link));
57 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D037.phpt16 mysqli_select_db($link, $db);
18 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
22 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')");
23 $ir[] = mysqli_field_count($link);
25 mysqli_real_query($link, "SELECT * FROM test_result");
26 $ir[] = mysqli_field_count($link);
31 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
32 mysqli_close($link);
41 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result"))
42 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D038.phpt15 mysqli_select_db($link, $db);
17 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
21 mysqli_query($link, "INSERT INTO test_result VALUES (1, 'foo')");
23 mysqli_real_query($link, "SELECT * FROM test_result");
24 if (mysqli_field_count($link)) {
25 $result = mysqli_store_result($link);
32 mysqli_query($link, "DROP TABLE IF EXISTS test_result");
33 mysqli_close($link);
41 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_result"))
42 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_report.phpt14 $link = NULL;
79 mysqli_kill($link, mysqli_thread_id($link));
82 mysqli_close($link);
91 // mysqli_kill($link, mysqli_thread_id($link));
94 mysqli_close($link);
113 mysqli_kill($link, mysqli_thread_id($link));
116 mysqli_close($link);
124 mysqli_kill($link, mysqli_thread_id($link));
127 mysqli_close($link);
241 printf("[025] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_fetch_array_many_rows.phpt18 printf("[001] %s failed: [%d] %s\n", $sql, mysqli_errno($link), mysqli_error($link));
24 printf("[002] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link));
34 printf("[003] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link));
49 $row[0], $id, mysqli_errno($link), mysqli_error($link));
54 $row[0], $row[id], mysqli_errno($link), mysqli_error($link));
61 $row[1], mysqli_errno($link), mysqli_error($link));
66 $row[1], $row['label'], mysqli_errno($link), mysqli_error($link));
74 printf("[008] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link));
84 printf("[009] SELECT failed: [%d] %s\n", mysqli_errno($link), mysqli_errno($link));
104 $num, $i, mysqli_errno($link), mysqli_error($link));
[all …]
H A Dbug67839.phpt12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
18 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 if (!mysqli_query($link, "INSERT INTO test(id, fp4, fp8) VALUES (1, 9.9999, 9.9999)")) {
30 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 if (!($stmt = mysqli_prepare($link, "SELECT id, fp4, fp8 FROM test"))) {
35 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
44 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_store_result.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_store_result($link)))
25 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 if (!is_object($res = mysqli_store_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_last_insert_id.phpt20 printf("[003] [%d] %s\n", $link->errno, $link->error);
36 printf("[002] [%d] %s\n", $link->errno, $link->error);
50 printf("[006] [%d] %s\n", $link->errno, $link->error);
81 printf("[012] [%d] %s\n", $link->errno, $link->error);
96 printf("[016] [%d] %s\n", $link->errno, $link->error);
109 printf("[019] [%d] %s\n", $link->errno, $link->error);
117 printf("[021] [%d] %s\n", $link->errno, $link->error);
125 printf("[023] [%d] %s\n", $link->errno, $link->error);
134 printf("[024] [%d] %s\n", $link->errno, $link->error);
156 printf("[029] [%d] %s\n", $link->errno, $link->error);
[all …]
/PHP-5.6/ext/ldap/tests/
H A Dldap_set_option_variation.phpt12 $link = ldap_connect($host, $port);
21 ldap_get_option($link, LDAP_OPT_DEREF, $option);
24 ldap_set_option($link, LDAP_OPT_SIZELIMIT, 123)
26 ldap_get_option($link, LDAP_OPT_SIZELIMIT, $option);
29 ldap_set_option($link, LDAP_OPT_TIMELIMIT, 33)
31 ldap_get_option($link, LDAP_OPT_TIMELIMIT, $option);
34 ldap_set_option($link, LDAP_OPT_NETWORK_TIMEOUT, 44)
39 ldap_set_option($link, LDAP_OPT_REFERRALS, true)
41 ldap_get_option($link, LDAP_OPT_REFERRALS, $option);
44 ldap_set_option($link, LDAP_OPT_RESTART, false)
[all …]
H A Dldap_compare_error.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link, $base);
17 var_dump(ldap_compare($link));
18 var_dump(ldap_compare($link, $link));
19 var_dump(ldap_compare($link, $link, $link));
22 var_dump(ldap_compare($link, $link, $link, $link, "Additional data"));
25 ldap_compare($link, "cn=userNotAvailable,$base", "sn", "testSN1"),
26 ldap_error($link),
27 ldap_errno($link)
35 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
[all …]
/PHP-5.6/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation4.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - access/update file …
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
41 // create hard link to file
43 var_dump( link($filename, $linkname) );
54 // append link with data
87 // delete the link
103 Size of file and hard link are same
110 Size of file and hard link are same
[all …]
H A Dsymlink_link_linkinfo_is_link_variation3.phpt12 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
27 Check size of file and soft link link
38 // create soft link to file
66 // append link with data
109 // delete the link
123 -- Check size of soft link and file --
127 Soft link size remains same
136 Soft link size remains same
[all …]
H A Dsymlink_link_linkinfo_is_link_variation1.phpt12 Description: creates a symbolic link to the existing target with the specified name link
17 Prototype: bool link ( string $target, string $link );
47 // creating soft link
51 // check if link is soft link
53 // delete the link created
60 // creating hard link
64 // check if link is soft link; expected: false as the link is a hardlink
77 // creating soft link
81 // check if link is soft link
90 // creating hard link
[all …]
H A Dfopen_variation19.phpt40 echo "soft link:";
42 echo "hard link:";
44 echo "link of link:";
48 echo "soft link:";
50 echo "hard link:";
52 echo "link of link:";
56 echo "soft link:";
60 echo "link of link:";
101 link of link:Hello World
105 link of link:Hello World again! again! again!
[all …]
/PHP-5.6/ext/mysql/tests/
H A Dmysql_list_fields.phpt13 $link = NULL;
18 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
21 …xpecting two fields from 'test', got %d. [%d] %s\n", $num, mysql_errno($link), mysql_error($link));
26 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
29 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
32 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link));
35 … Expecting 2 fields from 'test', got %d. [%d] %s\n", $num, mysql_errno($link), mysql_error($link));
47 mysql_close($link);
59 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysql_create_db.phpt13 $link = NULL;
19 if (false !== ($tmp = mysql_create_db($link, $link, $link)))
27 …"[004] Cannot create database, aborting test, [%d] %s\n", mysql_errno($link), mysql_error($link)));
29 if (!mysql_query("DROP DATABASE mysqlcreatedb", $link))
30 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
33 … boolean/true, got %s/%s, [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));
36 …boolean/false, got %s/%s, [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));
38 if (!mysql_query("DROP DATABASE mysqlcreatedb", $link))
39 printf("[008] [%d] %s\n", mysql_errno($link), mysql_error($link));
51 printf("[c002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]

Completed in 57 milliseconds

12345678910>>...31