/PHP-5.6/ext/ldap/tests/ |
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, $base); 15 $result = ldap_search($link, "$base", "(o=test)"); 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, $base);
|
H A D | ldap_search_overrides.phpt | 16 ldap_set_option($link, LDAP_OPT_DEREF, LDAP_DEREF_SEARCHING); 17 ldap_set_option($link, LDAP_OPT_SIZELIMIT, 123); 18 ldap_set_option($link, LDAP_OPT_TIMELIMIT, 33); 19 ldap_set_option($link, LDAP_OPT_NETWORK_TIMEOUT, 44); 21 insert_dummy_data($link, $base); 24 ldap_get_entries($link, $result) 27 ldap_get_option($link, LDAP_OPT_DEREF, $option), 29 ldap_get_option($link, LDAP_OPT_SIZELIMIT, $option), 31 ldap_get_option($link, LDAP_OPT_TIMELIMIT, $option), 33 ldap_get_option($link, LDAP_OPT_NETWORK_TIMEOUT, $option), [all …]
|
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, $base); 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, $base);
|
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, $base); 21 ldap_mod_replace($link, "cn=userA,$base", $entry), 23 $link, 24 ldap_search($link, "$base", "(description=user X)", array("description")) 33 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 35 remove_dummy_data($link, $base);
|
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, $base); 15 $result = ldap_search($link, "$base", "(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, $base);
|
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, $base); 18 $link, 19 ldap_search($link, "$base", "(o=my-unexisting-domain)") 28 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 29 remove_dummy_data($link, $base);
|
H A D | ldap_sort_basic.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link, $base); 15 ldap_add($link, "cn=userC,$base", array( 22 ldap_add($link, "cn=userD,$base", array( 29 ldap_add($link, "cn=userE,$base", array( 38 ldap_sort($link, $result, "sn"), 39 ldap_get_entries($link, $result) 48 ldap_delete($link, "cn=userC,$base"); 49 ldap_delete($link, "cn=userD,$base"); 50 ldap_delete($link, "cn=userE,$base"); [all …]
|
H A D | ldap_sort_variation.phpt | 13 $link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 14 insert_dummy_data($link, $base); 15 ldap_add($link, "cn=userC,$base", array( 22 ldap_add($link, "cn=userD,$base", array( 29 ldap_add($link, "cn=userE,$base", array( 38 ldap_sort($link, $result, "description"), 39 ldap_get_entries($link, $result) 48 ldap_delete($link, "cn=userC,$base"); 49 ldap_delete($link, "cn=userD,$base"); 50 ldap_delete($link, "cn=userE,$base"); [all …]
|
/PHP-5.6/ext/mysqli/tests/ |
H A D | mysqli_stmt_get_result_non_select.phpt | 21 if (!$stmt = mysqli_stmt_init($link)) 22 printf("[001] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 24 if (mysqli_query($link, 'PREPARE mystmt FROM "SHOW ENGINES"')) { 25 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 51 if (mysqli_query($link, 'PREPARE mystmt FROM "DESCRIBE test id"')) { 52 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 64 mysqli_errno($link), mysqli_error($link)); 70 if (mysqli_query($link, 'PREPARE mystmt FROM "EXPLAIN SELECT id FROM test"')) { 71 mysqli_query($link, 'DEALLOCATE PREPARE mystmt'); 83 mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | mysqli_options.phpt | 31 $link = NULL; 36 if (!is_null($tmp = @mysqli_options($link))) 39 $link = mysqli_init(); 42 mysqli_options($link, MYSQLI_SET_CHARSET_NAME, "utf8"); 43 mysqli_options($link, MYSQLI_SET_CHARSET_NAME, "latin1"); 45 if (!is_null($tmp = @mysqli_options($link, MYSQLI_OPT_CONNECT_TIMEOUT))) 48 if (!is_null($tmp = @mysqli_options($link, "s", 'extra_my.cnf'))) 58 var_dump("MYSQLI_OPT_LOCAL_INFILE", mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)); 94 if (true !== mysqli_options($link, MYSQLI_SET_CHARSET_NAME, $charset['Charset'])) { 102 var_dump("MYSQLI_OPT_LOCAL_INFILE", mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)); [all …]
|
H A D | mysqli_pconn_twice.phpt | 19 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 28 if (!($res = mysqli_query($link, "SELECT 'ok' AS it_works")) || 30 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 35 mysqli_close($link); 37 if (!$link = new my_mysqli($host, $user, $passwd, $db, $port, $socket)) 47 if (!($res = $link->query("SELECT 'works also with oo' AS syntax")) || 49 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 54 mysqli_close($link); 56 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 59 if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) [all …]
|
H A D | mysqli_stat.phpt | 14 $link = NULL; 19 if (!is_null($tmp = @mysqli_stat($link))) 24 if (!is_null($tmp = @mysqli_stat($link, "foo"))) 27 if ((!is_string($tmp = mysqli_stat($link))) || ('' === $tmp)) 29 gettype($tmp), $tmp, mysqli_errno($link), mysql_error($link)); 31 mysqli_close($link); 33 if (!is_null($tmp = mysqli_stat($link)))
|
H A D | mysqli_fetch_object.phpt | 16 $link = NULL; 26 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 31 printf("[004] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 47 printf("[005] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 65 printf("[006] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 71 printf("[007] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 77 printf("[008] Object seems wrong. [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 87 printf("[009] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 94 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 111 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | bug48909.phpt | 12 if (!($link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))) 16 if (!$link->query("DROP TABLE IF EXISTS test") || 17 !$link->query(sprintf("CREATE TABLE test(id INT, label varchar(255)) ENGINE = %s", $engine))) 18 printf("[002] [%d] %s\n", $link->errno, $link->error); 20 if (!$stmt = $link->prepare("INSERT INTO test(id, label) VALUES (?, ?)")) 21 printf("[003] [%d] %s\n", $link->errno, $link->error); 37 $link->close();
|
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 …]
|
/PHP-5.6/ext/mysql/tests/ |
H A D | mysql_client_encoding.phpt | 13 $link = NULL; 15 if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) 20 $link_enc = mysql_client_encoding($link); 23 …"[003] %s != %s, [%d] %s\n", $default_link_enc, $link_enc, mysql_errno($link), mysql_error($link)); 25 if (!$res = mysql_query('SELECT version() AS server_version', $link)) 26 printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link)); 36 …_query('SELECT @@character_set_connection AS charset, @@collation_connection AS collation', $link)) 37 printf("[007] [%d] %s\n", mysql_errno($link), mysql_error($link)); 62 mysql_close($link); 64 if (false !== ($tmp = @mysql_client_encoding($link)))
|
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 …]
|
/PHP-5.6/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');
|