Home
last modified time | relevance | path

Searched refs:link (Results 176 – 200 of 757) sorted by relevance

12345678910>>...31

/PHP-5.5/ext/standard/tests/file/
H A Dfflush_variation2.phpt46 // creating the sym link
71 -- link opened in w mode --
76 -- link opened in wb mode --
81 -- link opened in wt mode --
86 -- link opened in w+ mode --
101 -- link opened in a mode --
106 -- link opened in ab mode --
111 -- link opened in at mode --
116 -- link opened in a+ mode --
132 -- link opened in w mode --
[all …]
H A Dunlink_variation3.phpt15 /* Delete link files - soft and hard links */
25 // link name used here
28 echo "-- Testing unlink() on soft link --\n";
29 // create soft link
31 // unlink soft link
35 echo "-- Testing unlink() on hard link --\n";
36 // create hard link
37 var_dump( link($filename, $linkname) ); // expected: true
38 // delete hard link
50 -- Testing unlink() on soft link --
[all …]
H A Dpathinfo_basic.phpt15 "$file_path/foo/symlink.link",
73 %unicode|string%(4) "link"
133 %unicode|string%(4) "link"
148 %unicode|string%(4) "link"
163 %unicode|string%(4) "link"
178 %unicode|string%(4) "link"
193 %unicode|string%(4) "link"
208 %unicode|string%(4) "link"
252 string(12) "symlink.link"
253 string(4) "link"
[all …]
/PHP-5.5/ext/mysqli/tests/
H A D060.phpt19 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
21 mysqli_select_db($link, $db);
22 mysqli_query($link, "SET sql_mode=''");
24 mysqli_query($link,"DROP TABLE IF EXISTS test_fetch");
25 mysqli_query($link,"CREATE TABLE test_fetch(c1 smallint unsigned,
35 $result = mysqli_query($link, "SELECT * FROM test_fetch");
41 mysqli_close($link);
48 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
51 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_fetch"))
52 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dbug55283.phpt12 if (!($link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)))
16 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
19 if ($link->errno == 1064 && ($res = $link->query("SHOW VARIABLES"))) {
24 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
30 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
33 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
35 $link->close();
45 $link = mysqli_init();
46 mysqli_ssl_set($link, null, null, null, null, "RC4-MD5");
47 if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) {
[all …]
H A D016.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 if (!mysqli_query($link, "SET @dummy='foobar'"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
18 if (!$stmt = mysqli_prepare($link, "SELECT @dummy"))
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 mysqli_close($link);
H A Dmysqli_fetch_array_large.phpt14 function mysqli_fetch_array_large($offset, $link, $package_size) {
27 if (!@mysqli_query($link, $sql)) {
28 …if (1153 == mysqli_errno($link) || 2006 == mysqli_errno($link) || stristr(mysqli_error($link), 'ma…
35 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
41 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
48 $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link));
55 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
107 $link = mysqli_init();
114 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
116 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_kill.phpt14 $link = NULL;
29 printf("[004] Cannot determine thread id, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 $tmp = mysqli_kill($link, $thread_id);
42 var_dump($link);
47 if ($link->stat != NULL) {
51 if ($link->info != NULL) {
56 mysqli_close($link);
61 mysqli_kill($link, -1);
64 …printf("[011] Connection should not be gone, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
68 mysqli_close($link);
[all …]
H A Dbug52891.phpt19 if (!$link->query("DROP TABLE IF EXISTS tuint") ||
20 !$link->query("DROP TABLE IF EXISTS tsint")) {
21 printf("[002] [%d] %s\n", $link->errno, $link->error);
26 printf("[003] [%d] %s\n", $link->errno, $link->error);
31 printf("[004] [%d] %s\n", $link->errno, $link->error);
34 printf("[005] [%d] %s\n", $link->errno, $link->error);
107 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tuint')) {
108 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link
111 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tsint')) {
112 …printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link
[all …]
H A Dbug54221.phpt17 $link = mysqli_init();
18 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
25 if ($link->multi_query($query)) {
27 $sth = $link->store_result();
29 if ($link->warning_count) {
30 $warnings = $link->get_warnings();
37 } while ($link->more_results() && $link->next_result());
40 mysqli_close($link);
H A Dmysqli_poll_kill.phpt22 return $link;
27 $link = get_connection();
36 $links = array($link);
37 $errors = array($link);
38 $reject = array($link);
65 $links = array($link);
94 $links = array($link, $link);
95 $errors = array($link, $link);
96 $reject = array($link, $link);
159 printf("[018] Error: %d/%s\n", $link->errno, $link->error);
[all …]
H A Dmysqli_warning_unclonable.phpt16 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
20 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
21 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
23 if (!mysqli_query($link, "CREATE TABLE test (id SMALLINT)"))
24 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
26 if (!mysqli_query($link, "INSERT INTO test (id) VALUES (1000000)"))
27 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 if (!is_object($warning = mysqli_get_warnings($link)) || 'mysqli_warning' != get_class($warning)) {
H A Dmysqli_error_unicode.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_error($link)))
22 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
28 mysqli_query($link, "set names utf8");
31 $tmp = mysqli_error($link);
33 …tring/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
36 mysqli_query($link, 'SELECT * FROM няма_такава_таблица');
37 $tmp = mysqli_error($link);
40 mysqli_close($link);
42 var_dump(mysqli_error($link));
H A Dlocal_infile_tools.inc37 mysqli_real_escape_string($link, $file),
39 if (1148 == mysqli_errno($link)) {
42 } else if ($link->errno) {
43 return $link->error;
94 mysqli_set_local_infile_default($link);
101 if (!mysqli_query($link, sprintf("DELETE FROM test"))) {
102 …("[%03d] Cannot remove records, [%d] %s\n", $offset + 1, mysqli_errno($link), mysqli_error($link));
110 mysqli_real_escape_string($link, $file)))) {
113 mysqli_errno($link), mysqli_error($link));
117 printf("[%03d] [%d] %s\n", $offset + 3, mysqli_errno($link), mysqli_error($link));
[all …]
H A Dbug51605.phpt17 $link = mysqli_init();
18 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
21 mysqli_close($link);
24 $link = mysqli_init();
25 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
28 mysqli_close($link);
31 $link = mysqli_init();
32 if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
35 mysqli_close($link);
H A Dmysqli_ping.phpt14 $link = NULL;
21 if (!is_null($tmp = @mysqli_ping($link, $link)))
24 var_dump(mysqli_ping($link));
27 $res = mysqli_query($link, 'SELECT * FROM unknown_table');
28 if (!($errno = mysqli_errno($link)))
31 var_dump(mysqli_ping($link));
32 if ($errno === mysqli_errno($link))
35 mysqli_close($link);
37 if (!is_null($tmp = mysqli_ping($link)))
/PHP-5.5/ext/mysql/tests/
H A Dbug47438.phpt12 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
16 mysql_select_db($db, $link);
17 mysql_query("DROP TABLE IF EXISTS test_47438", $link);
18 mysql_query("CREATE TABLE test_47438 (a INT, b INT, c INT)", $link);
20 $result = mysql_query("SELECT * FROM test_47438", $link);
32 mysql_query("DROP TABLE IF EXISTS test_47438", $link);
39 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
43 if (!mysql_select_db($db, $link) ||
44 !mysql_query("DROP TABLE IF EXISTS test_47438", $link))
45 printf("[c002] [%d] %s\n", mysql_errno($link), mysql_error($link));
[all …]
H A Dmysql_error.phpt13 $link = NULL;
18 if (NULL !== ($tmp = @mysql_error($link)))
21 if (!is_null($tmp = @mysql_error($link, 'too many args')))
29 $tmp = mysql_error($link);
31 … string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysql_errno($link), mysql_error($link));
33 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
34 printf("[005] Failed to drop old test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
37 mysql_query('SELECT * FROM test', $link);
38 $tmp = mysql_error($link);
47 mysql_close($link);
[all …]
H A Dmysql_num_rows.phpt13 $link = NULL;
18 if (NULL !== ($tmp = @mysql_num_rows($link)))
25 if (!$res = mysql_query($query, $link)) {
26 printf("[%03d] [%d] %s\n", $offset, mysql_errno($link), mysql_error($link));
41 func_test_mysql_num_rows($link, "SELECT 1 AS a", 1, 5);
42 func_test_mysql_num_rows($link, "SHOW VARIABLES LIKE '%nixnutz%'", 0, 10);
44 func_test_mysql_num_rows($link, "SELECT id FROM test LIMIT 2", 2, 20, true);
46 if ($res = mysql_query('SELECT COUNT(id) AS num FROM test', $link)) {
54 printf("[030] [%d] %s\n", mysql_errno($link), mysql_error($link));
71 printf("[034] [%d] %s\n", mysql_errno($link), mysql_error($link));
[all …]
H A Dmysql_pconnect.phpt16 $link = NULL;
19 if (NULL !== ($tmp = @mysql_pconnect($link, $link, $link, $link, $link, $link)))
27 mysql_close($link);
33 if (false !== $link)
34 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($link), $link);
46 mysql_close($link);
56 mysql_close($link);
63 mysql_close($link);
70 mysql_close($link);
74 if (!is_resource($link = mysql_pconnect())) {
[all …]
/PHP-5.5/ext/ldap/tests/
H A Dldap_next_entry_basic.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link);
15 $result = ldap_list($link, "dc=my-domain,dc=com", "(objectClass=person)");
16 $entry = ldap_first_entry($link, $result);
18 $entry = ldap_next_entry($link, $entry),
19 ldap_get_values($link, $entry, 'sn'),
20 $entry = ldap_next_entry($link, $entry)
28 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
29 remove_dummy_data($link);
H A Dldap_first_reference_basic.phpt12 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
13 insert_dummy_data($link);
14 ldap_add($link, "cn=userref,dc=my-domain,dc=com", array(
19 ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_NEVER);
20 $result = ldap_search($link, "dc=my-domain,dc=com", "(cn=*)");
21 var_dump($ref = ldap_first_reference($link, $result));
23 ldap_parse_reference($link, $ref, $refs);
31 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
33 ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array(array("oid" => "2.16.840.1.113730.3.4.2")));
34 ldap_delete($link, "cn=userref,dc=my-domain,dc=com");
[all …]
H A Dconnect.inc17 $link = ldap_connect($host, $port);
19 ldap_bind($link, $user, $passwd);
20 return $link;
23 function insert_dummy_data($link) {
24 ldap_add($link, "dc=my-domain,dc=com", array(
32 ldap_add($link, "cn=userA,dc=my-domain,dc=com", array(
40 ldap_add($link, "cn=userB,dc=my-domain,dc=com", array(
55 function remove_dummy_data($link) {
57 ldap_delete($link, "cn=userA,dc=my-domain,dc=com");
58 ldap_delete($link, "cn=userB,dc=my-domain,dc=com");
[all …]
H A Dldap_next_attribute_error.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link);
15 $result = ldap_search($link, "dc=my-domain,dc=com", "(objectclass=organization)");
16 $entry = ldap_first_entry($link, $result);
18 ldap_next_attribute($link),
19 ldap_next_attribute($link, $link),
20 ldap_next_attribute($link, $entry)
28 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
29 remove_dummy_data($link);
H A Dskipifbindfailure.inc6 $link = ldap_connect($host, $port);
7 ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
8 if (!@ldap_bind($link, $user, $passwd))
9 die(sprintf("skip Can't bind to LDAP Server - [%d] %s", ldap_errno($link), ldap_error($link)));
11 ldap_unbind($link);

Completed in 106 milliseconds

12345678910>>...31