Home
last modified time | relevance | path

Searched refs:link (Results 251 – 275 of 757) sorted by relevance

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

/PHP-5.5/ext/mysql/tests/
H A Dmysql_list_dbs.phpt13 $link = NULL;
18 if (NULL !== ($tmp = @mysql_list_dbs($link, $link)))
23 if (!$res = @mysql_list_dbs($link))
24 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
27 printf("[004] Empty database list? [%d] %s\n", mysql_errno($link), mysql_error($link));
45 mysql_close($link);
H A Dmysql_list_processes.phpt13 $link = NULL;
15 if (NULL !== ($tmp = @mysql_list_processes($link, $link)))
20 if (!$res = mysql_list_processes($link))
21 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
24 printf("[003] Empty process list? [%d] %s\n", mysql_errno($link), mysql_error($link));
47 mysql_close($link);
H A Dmysql_fetch_field.phpt13 $link = NULL;
30 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link));
40 printf("[005] [%d] %s\n", mysql_errno($link), mysql_error($link));
85 printf("[008/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
101 printf("[009/%s] [%d] %s\n", $type_name, mysql_errno($link), mysql_error($link));
119 printf("[013] [%d] %s\n", mysql_errno($link), mysql_error($link));
122 printf("[014] [%d] %s\n", mysql_errno($link), mysql_error($link));
125 printf("[015] [%d] %s\n", mysql_errno($link), mysql_error($link));
128 printf("[016] [%d] %s\n", mysql_errno($link), mysql_error($link));
135 printf("[017] [%d] %s\n", mysql_errno($link), mysql_error($link));
[all …]
H A Dmysql_query_load_data_openbasedir.phpt43 mysql_close($link);
55 if (!mysql_select_db($db, $link)) {
56 printf("[002] [%d] %s\n", mysql_errno($link), mysql_error($link));
86 if (!mysql_query($sql, $link))
87 printf("[006] [%d] %s\n", mysql_errno($link), mysql_error($link));
92 printf("[007] [%d] '%s'\n", mysql_errno($link), mysql_error($link));
97 if (!mysql_query('DELETE FROM test', $link))
98 printf("[009] [%d] %s\n", mysql_errno($link), mysql_error($link));
105 if (!mysql_query($sql, $link))
106 printf("[010] [%d] %s\n", mysql_errno($link), mysql_error($link));
[all …]
H A Dmysql_pconn_kill.phpt29 $thread_id = mysql_thread_id($link);
31 if (!($res = mysql_query("SHOW FULL PROCESSLIST", $link)))
32 printf("[002] Cannot get processlist, [%d] %s\n", mysql_errno($link), mysql_error($link));
40 …ind regular connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link));
42 … persistent connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link));
45 …005] Cannot kill persistent connection thread, [%d] %s\n", mysql_errno($link), mysql_error($link));
49 printf("[006] Cannot get processlist, [%d] %s\n", mysql_errno($link), mysql_error($link));
63 …ind regular connection thread in process list, [%d] %s\n", mysql_errno($link), mysql_error($link));
91 mysql_select_db($db, $link);
93 … Cannot run query on new regular connection, [%d] %s\n", @mysql_errno($link), @mysql_error($link));
[all …]
H A Dmysql_field_flags.phpt13 $link = NULL;
18 if (null !== ($tmp = @mysql_field_flags($link)))
23 printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
45 $version = mysql_get_server_info($link);
97 printf("[010/%s] [%d] %s\n", $columns, mysql_errno($link), mysql_error($link));
101 if (!@mysql_query($sql, $link)) {
109 if (!mysql_query($sql, $link)) {
110 printf("[011/%s] '%s', [%d] %s\n", $columns, $sql, mysql_errno($link), mysql_error($link));
115 printf("[012/%s] [%d] %s\n", $columns, mysql_errno($link), mysql_error($link));
125 … flag '%s' not found, [%d] %s\n", $columns, $field, $flag, mysql_errno($link), mysql_error($link));
[all …]
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_fork.phpt19 if (!have_innodb($link))
20 die(sprintf("Needs InnoDB support, [%d] %s", $link->errno, $link->error));
54 else if ((($errno = mysqli_errno($link)) == 0) || ('' == ($error = mysqli_error($link))))
58 mysqli_close($link);
65 printf("[006] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
73 printf("[007] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
77 printf("[008] [%d] %s\n", mysqli_error($link), mysqli_errno($link));
210 mysqli_close($link);
217 printf("[019] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
232 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_fetch_field.phpt14 $link = NULL;
20 if (!is_null($tmp = @mysqli_fetch_field($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);
33 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
65 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
68 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
71 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
74 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_fetch_array_assoc.phpt13 if (!$res = mysqli_query($link, "SELECT * FROM test ORDER BY id LIMIT 5")) {
14 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
20 if (!$res = mysqli_query($link, "SELECT id, label FROM test ORDER BY id LIMIT 5")) {
21 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 mysqli_close($link);
H A Dmysqli_stmt_result_metadata_sqltests.phpt17 if (!$stmt = mysqli_stmt_init($link)) {
20 mysqli_errno($link), mysqli_error($link));
127 'field_count' => mysqli_field_count($link),
178 testStatement(160, $link, 'SHOW AUTHORS', array(), array(1), false, false);
180 testStatement(200, $link, 'SHOW COLLATION', array(), array(1), false, false);
183 testStatement(260, $link, 'SHOW DATABASES', array(), array(1), false, false);
185 testStatement(300, $link, 'SHOW ENGINES', array(), array(1), false, false);
186 testStatement(320, $link, 'SHOW PLUGINS', array(), array(1), false, false);
189 testStatement(380, $link, 'SHOW STATUS', array(), array(1), false, false);
192 testStatement(440, $link, 'SHOW TABLES', array(), array(1), false, false);
[all …]
H A Dmysqli_stmt_send_long_data_packet_size_libmysql.phpt16 if (!$stmt = mysqli_stmt_init($link))
17 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
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, sprintf("CREATE TABLE test(id INT NOT NULL AUTO_INCREMENT, label LONGBLOB…
23 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 if (!$res = mysqli_query($link, "SHOW VARIABLES LIKE 'max_allowed_packet'"))
34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
89 mysqli_close($link);
H A Dmysqli_fetch_field_types.phpt14 if (!mysqli_query($link, "DROP TABLE IF EXISTS test")) {
16 mysqli_errno($link), mysqli_error($link));
21 if (!mysqli_query($link, $create)) {
23 mysqli_errno($link), mysqli_error($link));
32 if (!mysqli_query($link, $sql)) {
34 mysqli_errno($link), mysqli_error($link));
38 if (!$res = mysqli_query($link, 'SELECT id FROM test')) {
40 mysqli_errno($link), mysqli_error($link));
47 mysqli_errno($link), mysqli_error($link));
114 mysqli_field_datatypes($link, $datatype[0], $datatype[1], $php_type, $datatypes);
[all …]
H A Dmysqli_stmt_bind_limits.phpt13 function bind_many($offset, $link, $num_params, $rows, $eval = true) {
42 if (!$link->query($drop) || !$link->query($create)) {
43 printf("[%03d + 01] [%d] %s\n", $offset, $link->errno, $link->error);
48 if (!$stmt = $link->prepare($insert)) {
49 printf("[%03d + 02] [%d] %s\n", $offset, $link->errno, $link->error);
87 if (!($res = $link->query("SELECT * FROM test"))) {
88 printf("[%03d + 05] [%d] %s\n", $offset, $link->errno, $link->error);
97 printf("[%03d + 06] [%d] %s\n", $offset, $link->errno, $link->error);
109 var_dump(bind_many(10, $link, 273, 240, true));
110 var_dump(bind_many(20, $link, 273, 240, false));
[all …]
H A D039.phpt13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15 mysqli_real_query($link, "SHOW VARIABLES");
17 if (mysqli_field_count($link)) {
18 $result = mysqli_store_result($link);
25 mysqli_close($link);
H A D045.phpt10 $link = my_mysqli_connect($host, $user, $passwd);
12 $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
19 mysqli_close($link);
26 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
28 $stmt = mysqli_prepare($link, "SHOW VARIABLES LIKE 'port'");
34 …if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && mysqli_get_server_version($link) < 50000)…
43 mysqli_close($link);
H A Dmysqli_fetch_field_flags.phpt13 if (mysqli_get_server_version($link) < 50041)
16 mysqli_close($link);
116 mysqli_errno($link), mysqli_error($link));
121 if (!mysqli_query($link, $create)) {
128 mysqli_errno($link), mysqli_error($link));
135 mysqli_errno($link), mysqli_error($link));
140 mysqli_errno($link), mysqli_error($link));
201 mysqli_errno($link), mysqli_error($link));
212 if (mysqli_query($link, $create)) {
215 mysqli_errno($link), mysqli_error($link));
[all …]
/PHP-5.5/ext/ldap/tests/
H A Dldap_count_entries_basic.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=person)");
16 var_dump(ldap_count_entries($link, $result));
23 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
24 remove_dummy_data($link);
H A Dldap_get_entries_variation.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link);
18 $link,
19 ldap_search($link, "dc=my-domain,dc=com", "(o=my-unexisting-domain)")
28 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
29 remove_dummy_data($link);
H A Dldap_mod_replace_basic.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link);
21 ldap_mod_replace($link, "cn=userA,dc=my-domain,dc=com", $entry),
23 $link,
24 ldap_search($link, "dc=my-domain,dc=com", "(description=user X)", array("description"))
33 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
35 remove_dummy_data($link);
H A Dldap_control_paged_results_variation1.phpt14 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
15 insert_dummy_data($link);
20 ldap_control_paged_result($link, 1),
21 $result = ldap_search($link, $dn, $filter, array('cn')),
22 ldap_get_entries($link, $result)
30 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
31 remove_dummy_data($link);
H A Dldap_get_attributes_basic.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_get_attributes($link, $entry)
26 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
27 remove_dummy_data($link);
H A Dldap_compare_basic.phpt13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14 insert_dummy_data($link);
16 ldap_compare($link, "cn=userA,dc=my-domain,dc=com", "sn", "testSN1"),
17 ldap_compare($link, "cn=userA,dc=my-domain,dc=com", "telephoneNumber", "yy-yy-yy-yy-yy")
25 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
26 remove_dummy_data($link);
H A Dldap_first_entry_error.phpt12 $link = ldap_connect($host, $port);
13 var_dump(ldap_first_entry($link));
14 var_dump(ldap_first_entry($link, $link, "Additional data"));
15 var_dump(ldap_first_entry($link, $link));
/PHP-5.5/ext/ldap/
H A Dldap.c71 LDAP *link; member
409 zval *link; in PHP_FUNCTION() local
531 zval *link; in PHP_FUNCTION() local
571 zval *link; in PHP_FUNCTION() local
1453 zval *link; in PHP_FUNCTION() local
1826 zval *link; in PHP_FUNCTION() local
1857 zval *link; in PHP_FUNCTION() local
1877 zval *link; in PHP_FUNCTION() local
2376 zval *link; in PHP_FUNCTION() local
2416 zval *link; in PHP_FUNCTION() local
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dbug39367.phpt12 unlink('/tmp/1link');
18 rename('/tmp/1tmp', '/tmp/1link');
19 echo file_get_contents('/tmp/1link')."\n";
21 unlink('/tmp/1link');
24 echo file_get_contents('/tmp/1link')."\n";
26 unlink('/tmp/1link');

Completed in 40 milliseconds

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