Home
last modified time | relevance | path

Searched refs:link (Results 376 – 400 of 757) sorted by relevance

1...<<11121314151617181920>>...31

/PHP-5.5/ext/mysql/tests/
H A Dmysql_close.phpt13 $link = NULL;
18 if (NULL !== ($tmp = @mysql_close($link, $link)))
21 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket))
29 $tmp = mysql_close($link);
33 if (false !== ($tmp = @mysql_query("SELECT 1", $link)))
H A Dmysql_free_result.phpt13 $link = NULL;
18 if (null !== ($tmp = @mysql_free_result($link)))
22 if (!$res = mysql_query("SELECT id FROM test ORDER BY id LIMIT 1", $link)) {
23 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
39 mysql_close($link);
H A Dmysql_trace_mode.phpt15 $res1 = mysql_query('SELECT id FROM test', $link);
17 if (!$res2 = @mysql_db_query($db, 'SELECT id FROM test', $link))
18 printf("[001] [%d] %s\n", mysql_errno($link), mysql_error($link));
22 $res3 = mysql_query('BOGUS_SQL', $link);
23 mysql_close($link);
H A Dmysql_sql_safe_mode.phpt7 $link = @mysql_connect("", "", "", true);
8 if ($link)
21 if ($link = mysql_connect($host, $user, $passwd, true)) {
23 mysql_close($link);
26 if ($link = mysql_pconnect($host, $user, $passwd)) {
28 mysql_close($link);
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_stmt_free_result.phpt19 $link = NULL;
24 if (!is_null($tmp = @mysqli_stmt_free_result($link)))
29 if (!$stmt = mysqli_stmt_init($link))
30 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
53 if (!$stmt = mysqli_stmt_init($link))
54 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
73 mysqli_close($link);
H A Dmysqli_stmt_get_warnings.phpt11 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
16 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
17 !mysqli_query($link, "CREATE TABLE test(id SMALLINT)"))
18 die(sprintf("skip [%d] %s\n", $link->errno, $link->error));
23 mysqli_query($link, "DROP TABLE IF EXISTS test");
30 $link = NULL;
35 if (!is_null($tmp = @mysqli_stmt_get_warnings($link)))
40 if (!$stmt = mysqli_stmt_init($link))
41 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
95 mysqli_close($link);
H A Dbug36745.phpt27 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
30 if (!mysqli_query($link, "DROP TABLE IF EXISTS litest"))
31 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 mysqli_close($link);
H A Dmysqli_mysqlnd_read_timeout.phpt20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
24 if (!$res = mysqli_query($link, "SELECT SLEEP(5)"))
25 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 mysqli_close($link);
H A Dmysqli_prepare_no_object.phpt13 if (false !== ($tmp = mysqli_prepare($link, false)))
15 printf("a) [%d] %s\n", mysqli_errno($link), mysqli_error($link));
17 if (false !== ($tmp = mysqli_prepare($link, '')))
19 printf("b) [%d] %s\n", mysqli_errno($link), mysqli_error($link));
21 mysqli_close($link);
H A Dmysqli_stmt_sqlstate.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_stmt_sqlstate($link)))
24 if (!is_null($tmp = @mysqli_stmt_sqlstate($link, '')))
27 if (!$stmt = mysqli_stmt_init($link))
28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
51 mysqli_close($link);
H A Dmysqli_fetch_field_direct.phpt14 $link = NULL;
19 if (!is_null($tmp = @mysqli_fetch_field_direct($link)))
22 if (!is_null($tmp = @mysqli_fetch_field_direct($link, $link)))
27 if (!$res = mysqli_query($link, "SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1")) {
28 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 mysqli_close($link);
H A Dbug_mysql_49406.phpt12 if (!($link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)))
18 if (!$res = $link->query($query))
19 printf("[002] [%d] %s\n", $link->errno, $link->error);
22 printf("[003] No result, [%d] %s\n", $link->errno, $link->error);
30 if (!$stmt = $link->prepare($query))
31 printf("[005] [%d] %s\n", $link->errno, $link->error);
91 $link->close();
H A Dmysqli_fetch_fields.phpt14 $link = NULL;
20 if (!is_null($tmp = @mysqli_fetch_fields($link)))
27 if (!mysqli_set_charset($link, 'utf8'))
28 printf("[%d] %s\n", mysqli_errno($link), mysqli_errno($link));
30 $charsetInfo = mysqli_get_charset($link);
32 if (!$res = mysqli_query($link, "SELECT id AS ID, label FROM test AS TEST ORDER BY id LIMIT 1")) {
33 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
61 mysqli_close($link);
H A Dmysqli_get_connection_stats_off.phpt20 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
24 $before = mysqli_get_connection_stats($link);
30 mysqli_close($link);
31 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
35 $after = mysqli_get_connection_stats($link);
49 mysqli_close($link);
H A Dmysqli_stmt_get_result_bit.phpt14 if (mysqli_get_server_version($link) < 50003)
40 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
50 if (!mysqli_query($link, "DROP TABLE IF EXISTS test") ||
51 …!mysqli_query($link, $sql = sprintf('CREATE TABLE test(id BIGINT UNSIGNED, bit_value BIT(%d) NOT N…
52 printf("[002 - %d] [%d] %s\n",$bits, mysqli_errno($link), mysqli_error($link));
54 if (!$stmt = mysqli_stmt_init($link))
55 printf("[003 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link));
97 printf("[007 - %d] [%d] %s\n", $bits, mysqli_errno($link), mysqli_error($link));
125 mysqli_close($link);
/PHP-5.5/ext/ldap/tests/
H A Dldap_first_attribute_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_first_attribute($link));
14 var_dump(ldap_first_attribute($link, $link));
H A Dldap_get_attributes_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_get_attributes($link));
14 var_dump(ldap_get_attributes($link, $link));
H A Dldap_get_dn_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_get_dn($link));
14 var_dump(ldap_get_dn($link, $link));
H A Dldap_bind_error.phpt13 $link = ldap_connect($host, $port);
14 ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
17 var_dump(ldap_bind($link, $user, $passwd, null));
20 var_dump(ldap_bind($link, $user, "ThisIsNotCorrect$passwd"));
23 var_dump(ldap_bind($link, "unexistingProperty=weirdValue,$user", $passwd));
H A Dldap_sasl_bind_error.phpt14 $link = ldap_connect($host, $port);
15 ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
21 var_dump(ldap_sasl_bind($link, "Invalid DN", $passwd, 'DIGEST-MD5', 'realm', $sasl_user));
24 var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$passwd", 'DIGEST-MD5', "realm", "invalid$sas…
27 var_dump(ldap_sasl_bind($link, null, "ThisIsNotCorrect$passwd", 'DIGEST-MD5', "realm", $sasl_user));
29 var_dump(ldap_sasl_bind($link, null, $passwd, 'DIGEST-MD5', "realm", "Manager", "test"));
32 var_dump(ldap_sasl_bind($link, "unexistingProperty=weirdValue,$user", $passwd));
H A Dldap_count_entries_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_count_entries($link));
14 var_dump(ldap_count_entries($link, $link));
H A Dldap_start_tls_error.phpt13 $link = ldap_connect($host, $port);
14 ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
18 var_dump(ldap_start_tls($link, $link));
H A Dldap_unbind_error.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
19 var_dump(ldap_unbind($link, "Additional data"));
25 var_dump(ldap_unbind($link));
26 var_dump(ldap_unbind($link));
40 Warning: ldap_unbind(): %d is not a valid ldap link resource in %s on line %d
/PHP-5.5/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_error1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : error conditions - symlink & linkinfo
17 /* Prototype: bool symlink ( string $target, string $link );
18 Description: creates a symbolic link to the existing target with the specified name link
21 Description: Tells whether the given file is a symbolic link.
23 Prototype: bool link ( string $target, string $link );
24 Description: Create a hard link
27 Description: Gets information about a link
30 // create temp $filename and create link $linkname to it
35 // linkname used to create soft/hard link
/PHP-5.5/ext/openssl/tests/
H A Dbug46127.phpt24 $link = stream_socket_accept($sock);
25 if (!$link) return false; // bad link?
27 fputs($link, "Sending bug 46127\n");
30 fclose($link);

Completed in 29 milliseconds

1...<<11121314151617181920>>...31