Home
last modified time | relevance | path

Searched refs:link (Results 101 – 125 of 757) sorted by relevance

12345678910>>...31

/PHP-5.5/ext/mysqli/tests/
H A D005.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
19 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
39 mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch");
40 mysqli_close($link);
46 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
49 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
50 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dbug49442.phpt8 $link = mysqli_init();
15 die(sprintf("skip %s, [%d] %s", $msg, $link->errno, $link->error));
17 mysqli_close($link);
27 $link = mysqli_init();
37 printf("[003] Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
48 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
63 mysqli_close($link);
87 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
93 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_execute_stored_proc_out.phpt11 if (mysqli_get_server_version($link) < 50503) {
29 if (!mysqli_query($link, 'DROP PROCEDURE IF EXISTS p'))
30 printf("[003] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
33 if (!$stmt = mysqli_prepare($link, 'CALL p(?, ?)'))
34 printf("[005] Cannot prepare CALL, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
56 if (!$res = $link->query("SELECT 1"))
57 printf("[013] [%d] %s\n", $link->errno, $link->error);
60 printf("[004] Cannot create SP, [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
63 mysqli_close($link);
72 @mysqli_query($link, 'DROP PROCEDURE IF EXISTS p');
[all …]
H A Dmysqli_stmt_bind_result_zerofill.phpt18 if (!mysqli_query($link, $sql)) {
25 $offset, mysqli_errno($link), mysqli_error($link));
31 $offset, mysqli_errno($link), mysqli_error($link));
75 zerofill(2, $link, 'TINYINT');
78 zerofill(5, $link, 'INT');
79 zerofill(6, $link, 'INTEGER');
80 zerofill(7, $link, 'BIGINT');
81 zerofill(8, $link, 'FLOAT');
82 zerofill(9, $link, 'DOUBLE');
86 zerofill(12, $link, 'DEC');
[all …]
H A D019.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 if (!mysqli_query($link, "DROP TABLE IF EXISTS insert_read"))
16 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
26 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
29 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 mysqli_query($link, "DROP TABLE IF EXISTS insert_read");
55 mysqli_close($link);
64 if (!mysqli_query($link, "DROP TABLE IF EXISTS insert_read"))
65 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_info.phpt21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 if (!is_null($tmp = mysqli_info($link)) || ('' != $tmp))
28 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
43 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 printf("[011] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
54 if (!$res = mysqli_query($link, "SELECT 1"))
55 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
76 if (!mysqli_query($link, "DELETE FROM test")) {
[all …]
H A D059.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 mysqli_select_db($link, $db);
17 mysqli_query($link, "SET SQL_MODE='PIPES_AS_CONCAT'");
19 mysqli_query($link,"DROP TABLE IF EXISTS mbind");
20 mysqli_query($link,"CREATE TABLE mbind (b varchar(25))");
22 $stmt = mysqli_prepare($link, "INSERT INTO mbind VALUES (?||?)");
33 $stmt = mysqli_prepare($link, "SELECT * FROM mbind");
41 mysqli_close($link);
50 if (!mysqli_query($link, "DROP TABLE IF EXISTS mbind"))
51 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A D046.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 test_affected");
20 mysqli_query($link, "INSERT INTO test_affected VALUES (1),(2),(3),(4),(5)");
22 $stmt = mysqli_prepare($link, "DELETE FROM test_affected WHERE foo=?");
33 mysqli_query($link, "DROP TABLE IF EXISTS test_affected");
34 mysqli_close($link);
40 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
43 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_affected"))
44 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dtable.inc4 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
10 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
11 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
15 if (!mysqli_query($link, 'SET SESSION sql_mode=\'\'')) {
16 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
20 if (!mysqli_query($link, 'CREATE TABLE test(id INT DEFAULT 0, label CHAR(1), PRIMARY KEY(id)) ENGIN…
21 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 if (!mysqli_query($link, "INSERT INTO test(id, label) VALUES (1, 'a'), (2, 'b'), (3, 'c'), (4, 'd')…
26 printf("[%d] %s\n", mysqli_errno($link), mysqli_error($link));
H A D041.phpt14 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 mysqli_select_db($link, $db);
17 mysqli_query($link, "DROP TABLE IF EXISTS test_warnings");
18 mysqli_query($link, "DROP TABLE IF EXISTS test_warnings");
20 var_dump(mysqli_warning_count($link));
22 mysqli_close($link);
28 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
31 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"))
32 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
34 mysqli_close($link);
H A D043.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 test_update");
18 mysqli_query($link,"CREATE TABLE test_update(a varchar(10),
21 mysqli_query($link, "INSERT INTO test_update VALUES ('foo', 2)");
23 $stmt = mysqli_prepare($link, "UPDATE test_update SET a=?,b=? WHERE b=?");
39 mysqli_query($link, "DROP TABLE IF EXISTS test_update");
40 mysqli_close($link);
49 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_update"))
50 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_change_user_set_names.phpt13 die(sprintf("skip [%d] %s\n", mysqli_errno($link), mysqli_error($link)));
32 printf("[002] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
40 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 if (!$res = mysqli_query($link, 'SELECT
49 printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
52 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
99 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
102 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
118 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
121 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_pconn_max_links.phpt15 printf("skip Cannot create second DB user [%d] %s", mysqli_errno($link), mysqli_error($link));
16 mysqli_close($link);
23 …tf("skip Cannot GRANT SELECT to second DB user [%d] %s", mysqli_errno($link), mysqli_error($link));
28 mysqli_close($link);
37 mysqli_close($link);
40 mysqli_close($link);
103 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
116 mysqli_connect_errno($link), mysqli_connect_error($link));
162 mysqli_close($link);
172 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_real_escape_string_eucjpms.phpt13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
17 if (!mysqli_set_charset($link, 'eucjpms'))
19 mysqli_close($link);
25 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
32 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
34 mysqli_error($link));
39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
40 mysqli_error($link));
43 var_dump(mysqli_set_charset($link, "eucjpms"));
[all …]
H A Dmysqli_real_escape_string_euckr.phpt13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
17 if (!mysqli_set_charset($link, 'euckr'))
19 mysqli_close($link);
31 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
32 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
33 mysqli_error($link));
38 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
39 mysqli_error($link));
42 var_dump(mysqli_set_charset($link, "euckr"));
47 if ('�Ǵ뼺\"�Ǵ뼺' !== ($tmp = mysqli_real_escape_string($link, '�Ǵ뼺"�Ǵ뼺')))
[all …]
H A Dmysqli_ssl_set.phpt16 $link = NULL;
21 if (!is_null($tmp = @mysqli_ssl_set($link)))
24 if (!is_null($tmp = @mysqli_ssl_set($link, $link)))
27 if (!is_null($tmp = @mysqli_ssl_set($link, $link, $link)))
30 if (!is_null($tmp = @mysqli_ssl_set($link, $link, $link, $link)))
33 if (!is_null($tmp = @mysqli_ssl_set($link, $link, $link, $link, $link)))
39 $link = mysqli_init();
41 $link,
55 if (false !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
H A Dmysqli_real_escape_string_gb2312.phpt13 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
17 if (!mysqli_set_charset($link, 'gb2312'))
19 mysqli_close($link);
25 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
32 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
33 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
34 mysqli_error($link));
39 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
40 mysqli_error($link));
43 var_dump(mysqli_set_charset($link, "gb2312"));
[all …]
H A Dmysqli_real_escape_string_gbk.phpt14 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
18 if (!mysqli_set_charset($link, 'gbk'))
21 mysqli_close($link);
34 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
35 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link),
36 mysqli_error($link));
41 printf("Failed to create test table: [%d] %s\n", mysqli_errno($link),
42 mysqli_error($link));
45 var_dump(mysqli_set_charset($link, "gbk"));
50 if ('�İ汾\"�İ汾' !== ($tmp = mysqli_real_escape_string($link, '�İ汾"�İ汾')))
[all …]
H A D002.phpt13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
16 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_fetch_null"))
17 printf("[002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 printf("[003] Cannot create table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
32 printf("[004] Cannot insert records, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
45 @mysqli_query($link, "DROP TABLE IF EXISTS test_fetch_null");
46 mysqli_close($link);
52 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
55 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_fetch_null"))
56 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
/PHP-5.5/ext/mysql/tests/
H A Dmysql_unbuffered_query.phpt13 $link = NULL;
15 if (false !== ($tmp = @mysql_unbuffered_query($link)))
29 if ((0 === mysql_errno($link)) || ('' == mysql_error($link)))
33 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
39 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link));
57 printf("[010] [%d] %s\n", mysql_errno($link), mysql_error($link));
74 printf("[012] [%d] %s\n", mysql_errno($link), mysql_error($link));
82 mysql_close($link);
100 printf("[clean] Failed to drop test table: [%d] %s\n", mysql_errno($link), mysql_error($link));
105 @mysql_query('DROP FUNCTION IF EXISTS f', $link);
[all …]
H A Dmysql_insert_id.phpt14 $link = NULL;
19 if (NULL !== ($tmp = @mysql_insert_id($link)))
27 if (0 !== ($tmp = mysql_insert_id($link)))
31 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link));
33 if (0 !== ($tmp = mysql_insert_id($link)))
39 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
41 if (0 !== ($tmp = mysql_insert_id($link)))
45 printf("[008] [%d] %s\n", mysql_errno($link), mysql_error($link));
48 printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link));
58 mysql_close($link);
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation5.phpt2 Test symlink(), linkinfo(), link() and is_link() functions : usage variations - work on deleted link
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
29 // link name used here
44 var_dump( symlink($filename, $linkname) ); // create link
46 // delete the link
47 var_dump( unlink($linkname) ); // delete the link
[all …]
H A Dsymlink_link_linkinfo_is_link_basic1.phpt2 Test symlink(), linkinfo(), link() and is_link() functions: basic functionality - link to files
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
53 /* create soft/hard link to the file
58 // create soft link
62 // checking if given file is soft link
67 // testing on hard link
69 // creating hard link
70 var_dump( link($file, $linkname) );
[all …]
H A Dsymlink_link_linkinfo_is_link_variation2.phpt11 /* Prototype: bool symlink ( string $target, string $link );
12 Description: creates a symbolic link to the existing target with the specified name link
15 Description: Tells whether the given file is a symbolic link.
17 Prototype: bool link ( string $target, string $link );
18 Description: Create a hard link
21 Description: Gets information about a link
24 /* Variation 2 : Create hard link to non-existent file */
32 echo "*** Creating a hard link to a non-existent file ***\n";
33 // creating hard link to non_existent file
43 *** Creating a hard link to a non-existent file ***
[all …]
/PHP-5.5/ext/ldap/tests/
H A Dldap_sort_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_sort($link));
14 var_dump(ldap_sort($link, $link));
15 var_dump(ldap_sort($link, $link, $link, $link));
16 var_dump(ldap_sort($link, $link, $link));
17 var_dump(ldap_sort($link, $link, "sn"));

Completed in 38 milliseconds

12345678910>>...31