Home
last modified time | relevance | path

Searched refs:link (Results 151 – 175 of 646) sorted by relevance

12345678910>>...26

/php-src/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation8.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - try link with same …
12 /* Variation 8 : Create soft/hard link to different directory */
14 /* creating link to a file in different dir with the same name as the file */
19 // temp link name used
29 var_dump( link($filename, $dirname."/".$linkname) ); // this works fine
30 // delete link
39 // temp link name used
50 // delete link
60 *** Create hard link in different directory with same filename ***
62 Warning: link(): File exists in %s on line %d
[all …]
H A Dsymlink_link_linkinfo_is_link_basic1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to files
28 // name of the soft link created to $filename
31 // name of the hard link created to $filename
41 /* create soft/hard link to the file
46 // create soft link
48 // checking information of link with linkinfo()
51 // checking if given file is soft link
56 // testing on hard link
58 // creating hard link
59 var_dump( link($file, $linkname) );
[all …]
H A Dfflush_variation2.phpt43 // creating the sym link
68 -- link opened in w mode --
73 -- link opened in wb mode --
78 -- link opened in wt mode --
83 -- link opened in w+ mode --
98 -- link opened in a mode --
103 -- link opened in ab mode --
108 -- link opened in at mode --
113 -- link opened in a+ mode --
129 -- link opened in w mode --
[all …]
/php-src/ext/mysqli/tests/
H A Dbug52891.phpt17 if (!$link->query("DROP TABLE IF EXISTS tuint") ||
18 !$link->query("DROP TABLE IF EXISTS tsint")) {
19 printf("[002] [%d] %s\n", $link->errno, $link->error);
24 printf("[003] [%d] %s\n", $link->errno, $link->error);
29 printf("[004] [%d] %s\n", $link->errno, $link->error);
32 printf("[005] [%d] %s\n", $link->errno, $link->error);
105 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tuint')) {
106 …intf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
109 if (!mysqli_query($link, 'DROP TABLE IF EXISTS tsint')) {
110 …intf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_send_long_data.phpt14 if (!$stmt = mysqli_stmt_init($link))
15 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
17 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
18 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
21 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
35 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
86 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
90 $tmp, mysqli_errno($link), mysqli_error($link));
93 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_real_escape_string_big5.phpt10 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
14 if (!mysqli_set_charset($link, 'big5'))
16 mysqli_close($link);
22 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
29 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
31 mysqli_error($link));
36 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
37 mysqli_error($link));
40 var_dump(mysqli_set_charset($link, "big5"));
66 var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100,
[all …]
H A Dbug79084.phpt15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
16 $link->real_query($sql);
17 $res = $link->use_result();
20 $link->close();
24 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
25 $res = $link->query($sql);
28 $link->close();
32 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
33 $res = $link->query($sql);
36 $link->close();
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 Dbug74779.phpt14 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
23 if (!$link->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, true)) {
24 printf("[003] [%d] %s\n", $link->errno, $link->error);
27 if (!$result = $link->query("SELECT ST_Y(Point(56.7, 53.34))")) {
28 printf("[004] [%d] %s\n", $link->errno, $link->error);
32 printf("[005] [%d] %s\n", $link->errno, $link->error);
37 mysqli_close($link);
H A Dbug55283.phpt15 if (!($link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)))
18 if (false === strpos($link->host_info, 'TCP/IP'))
22 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
25 if ($link->errno == 1064 && ($res = $link->query("SHOW VARIABLES"))) {
30 … die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
36 die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
39 die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
41 $link->close();
51 $link = mysqli_init();
52 mysqli_ssl_set($link, null, null, null, null, "AES256-SHA");
[all …]
H A Dmysqli_warning_unclonable.phpt15 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
19 if (!mysqli_query($link, "DROP TABLE IF EXISTS test"))
20 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
22 if (!mysqli_query($link, "CREATE TABLE test (id SMALLINT)"))
23 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 if (!mysqli_query($link, "INSERT INTO test (id) VALUES (1000000)"))
26 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 …if (!is_object($warning = mysqli_get_warnings($link)) || 'mysqli_warning' != get_class($warning)) {
H A Dmysqli_stmt_result_metadata.phpt13 if (!$stmt = mysqli_stmt_init($link))
14 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
34 gettype($field0_fetch), $field0_fetch, mysqli_errno($link), mysqli_error($link));
38 gettype($field0_direct), $field0_direct, mysqli_errno($link), mysqli_error($link));
50 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
58 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
62 gettype($field1_direct), $field1_direct, mysqli_errno($link), mysqli_error($link));
72 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
83 mysqli_close($link);
H A Dmysqli_poll_kill.phpt18 return $link;
23 $link = get_connection();
32 $links = array($link);
33 $errors = array($link);
34 $reject = array($link);
61 $links = array($link);
91 $links = array($link, $link);
92 $errors = array($link, $link);
93 $reject = array($link, $link);
166 printf("[020] Error: %d/%s\n", $link->errno, $link->error);
[all …]
H A Dmysqli_sqlstate.phpt13 var_dump(mysqli_sqlstate($link));
14 mysqli_query($link, "SELECT unknown_column FROM test");
15 var_dump(mysqli_sqlstate($link));
16 mysqli_free_result(mysqli_query($link, "SELECT id FROM test"));
17 var_dump(mysqli_sqlstate($link));
19 mysqli_close($link);
22 mysqli_sqlstate($link);
H A Dmysqli_store_result_buffered_c.phpt13 if (!$res = mysqli_real_query($link, "SELECT id, label FROM test ORDER BY id"))
14 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
16 if (!is_object($res = mysqli_store_result($link, MYSQLI_STORE_RESULT_COPY_DATA)))
18 gettype($res), $res, mysqli_errno($link), mysqli_error($link));
22 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
H A Dmysqli_error_unicode.phpt13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
18 mysqli_query($link, "set names utf8");
20 $tmp = mysqli_error($link);
22 …tring/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
25 mysqli_query($link, 'SELECT * FROM няма_такава_таблица');
26 $tmp = mysqli_error($link);
29 mysqli_close($link);
32 mysqli_error($link);
H A Dbug45289.phpt13 $link->close();
15 $link = mysqli_init();
16 if (!($link->real_connect($host, $user, $passwd, $db, $port, $socket)))
21 if (!($stmt = $link->prepare('SELECT id, label FROM test WHERE id=? LIMIT 1')))
22 printf("[002] [%d] %s\n", $link->errno, $link->error);
27 if ($res = $link->store_result()) {
30 printf("[004] [%d] %s\n", $link->errno, $link->error);
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_fetch_array_large.phpt18 function mysqli_fetch_array_large($offset, $link, $package_size) {
31 if (!@mysqli_query($link, $sql)) {
32 …if (1153 == mysqli_errno($link) || 2006 == mysqli_errno($link) || stristr(mysqli_error($link), 'ma…
39 … printf("[%03d + 1] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
45 … printf("[%03d + 2] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
52 … $offset, $random_char, $row['label'], $len, mysqli_errno($link), mysqli_error($link));
59 … printf("[%03d + 4] len = %d, [%d] %s\n", $offset, $len, mysqli_errno($link), mysqli_error($link));
111 $link = mysqli_init();
118 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
120 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
/php-src/ext/ldap/tests/
H A Dskipifbindfailure.inc6 $link = ldap_connect($uri);
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);
H A Dldap_rename_ext.phpt18 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
19 insert_dummy_data($link, $base);
22 $result = ldap_rename_ext($link, "cn=userA,$base", "cn=userZ", "$base", TRUE,
28 ldap_parse_result($link, $result, $errcode, $matcheddn, $errmsg, $referrals, $ctrls),
33 ldap_count_entries($link, ldap_search($link, "$base", "(cn=userA)", array("cn"))),
34 ldap_count_entries($link, ldap_search($link, "$base", "(cn=userZ)", array("cn")))
41 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
42 ldap_rename($link, "cn=userZ,$base", "cn=userA", "$base", true);
43 remove_dummy_data($link, $base);
H A Dldap_get_option_controls.phpt15 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
16 insert_dummy_data($link, $base);
49 ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_get),
50 ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_set),
51 ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_get),
53 ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_set2),
54 ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_get),
57 ldap_get_entries($link, $result)['count'],
58 ldap_set_option($link, LDAP_OPT_SERVER_CONTROLS, array()),
59 ldap_get_option($link, LDAP_OPT_SERVER_CONTROLS, $controls_get)
[all …]
H A Dldap_get_dn_basic.phpt14 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
15 insert_dummy_data($link, $base);
16 $result = ldap_search($link, "$base", "(objectclass=organization)");
17 $entry = ldap_first_entry($link, $result);
19 ldap_get_dn($link, $entry)
26 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
27 remove_dummy_data($link, $base);
H A Dldap_get_values_len_basic.phpt14 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
15 insert_dummy_data($link, $base);
16 $result = ldap_search($link, "$base", "(o=test)");
17 $entry = ldap_first_entry($link, $result);
19 ldap_get_values_len($link, $entry, "o")
26 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
27 remove_dummy_data($link, $base);
H A Dldap_first_attribute_basic.phpt14 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
15 insert_dummy_data($link, $base);
16 $result = ldap_search($link, "$base", "(objectclass=organization)", array("objectClass"));
17 $entry = ldap_first_entry($link, $result);
19 ldap_first_attribute($link, $entry)
26 $link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
27 remove_dummy_data($link, $base);

Completed in 1465 milliseconds

12345678910>>...26