/PHP-5.5/ext/mysql/tests/ |
H A D | mysql_list_dbs.phpt | 13 $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 D | mysql_list_processes.phpt | 13 $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 D | mysql_fetch_field.phpt | 13 $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 D | mysql_query_load_data_openbasedir.phpt | 43 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 D | mysql_pconn_kill.phpt | 29 $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 D | mysql_field_flags.phpt | 13 $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 D | mysqli_fork.phpt | 19 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 D | mysqli_fetch_field.phpt | 14 $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 D | mysqli_fetch_array_assoc.phpt | 13 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 D | mysqli_stmt_result_metadata_sqltests.phpt | 17 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 D | mysqli_stmt_send_long_data_packet_size_libmysql.phpt | 16 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 D | mysqli_fetch_field_types.phpt | 14 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 D | mysqli_stmt_bind_limits.phpt | 13 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 D | 039.phpt | 13 $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 D | 045.phpt | 10 $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 D | mysqli_fetch_field_flags.phpt | 13 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 D | ldap_count_entries_basic.phpt | 13 $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 D | ldap_get_entries_variation.phpt | 13 $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 D | ldap_mod_replace_basic.phpt | 13 $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 D | ldap_control_paged_results_variation1.phpt | 14 $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 D | ldap_get_attributes_basic.phpt | 13 $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 D | ldap_compare_basic.phpt | 13 $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 D | ldap_first_entry_error.phpt | 12 $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 D | ldap.c | 71 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 D | bug39367.phpt | 12 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');
|