/PHP-7.1/ext/mysqli/tests/ |
H A D | bug36745.phpt | 27 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 D | mysqli_mysqlnd_read_timeout.phpt | 20 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 D | mysqli_prepare_no_object.phpt | 13 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 D | mysqli_stmt_sqlstate.phpt | 14 $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 D | mysqli_fetch_field_direct.phpt | 14 $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 D | mysqli_options_openbasedir.phpt | 13 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 17 if (true !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) 21 if (false !== mysqli_options($link, MYSQLI_OPT_LOCAL_INFILE, 1)) 25 mysqli_close($link);
|
H A D | bug_mysql_49406.phpt | 12 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 D | mysqli_fetch_fields.phpt | 14 $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 D | mysqli_get_connection_stats_off.phpt | 20 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 D | skipifconnectfailure.inc | 5 $link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 6 if (!is_object($link)) 8 mysqli_close($link);
|
H A D | mysqli_stmt_get_result_bit.phpt | 14 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);
|
H A D | bug45019.phpt | 16 …if (!($res = $link->query("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS CHAR… 17 printf("[001] [%d] %s\n", $link->errno, $link->error); 27 …if (!($stmt = $link->prepare("SELECT CAST('one' AS CHAR) AS column1 UNION SELECT CAST('three' AS C… 28 printf("[002] [%d] %s\n", $link->errno, $link->error); 50 $link->close();
|
H A D | bug62046.phpt | 12 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { 15 if (FALSE === ($stmt = $link->prepare('SELECT 42'))) { 16 printf("[002] Prepare failed, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 35 $link->close();
|
H A D | 066.phpt | 36 if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) 39 if (!mysqli_query($link, "DROP TABLE IF EXISTS test_warnings")) 40 printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 42 mysqli_close($link);
|
H A D | mysqli_change_user_oo.phpt | 10 if (!$IS_MYSQLND && (mysqli_get_server_version($link) < 50118 && mysqli_get_server_version($link) >… 14 if (mysqli_get_server_version($link) >= 50600) 21 $link = NULL; 31 if (!is_null($tmp = @$mysqli->change_user($link))) 34 if (!is_null($tmp = @$mysqli->change_user($link, $link))) 37 if (!is_null($tmp = @$mysqli->change_user($link, $link, $link, $link)))
|
H A D | mysqli_connect_oo_defaults.phpt | 14 $link = NULL; 131 $link = mysqli_connect($host, $user, $passwd, null, ini_get('mysqli.default_port')); 132 mysqli_select_db($link, $db); 133 if (!$res = mysqli_query($link, "SELECT 'have been set' AS all_defaults")) 134 printf("[013] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 137 mysqli_close($link); 144 $link = mysqli_connect($host, $user, $passwd, null); 145 mysqli_select_db($link, $db); 146 if (!$res = mysqli_query($link, "SELECT 'have been set' AS all_defaults")) 147 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
H A D | 027.phpt | 13 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 $status = mysqli_stat($link); 19 mysqli_close($link);
|
H A D | 053.phpt | 15 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 17 $result = mysqli_query($link, "SELECT CURRENT_USER()"); 18 mysqli_close($link);
|
/PHP-7.1/ext/ldap/tests/ |
H A D | ldap_sasl_bind_error.phpt | 14 $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 D | ldap_count_entries_error.phpt | 12 $link = ldap_connect($host, $port); 13 var_dump(ldap_count_entries($link)); 14 var_dump(ldap_count_entries($link, $link));
|
H A D | ldap_start_tls_error.phpt | 13 $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 D | ldap_unbind_error.phpt | 13 $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(): supplied resource is not a valid ldap link resource in %s on line %d
|
H A D | ldap_connect_basic.phpt | 12 $link = ldap_connect($host, $port); 13 var_dump($link); 17 resource(%d) of type (ldap link)
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_error1.phpt | 2 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-7.1/ext/session/tests/ |
H A D | bug26862.phpt | 16 echo '<a href="file.php">link</a>'; 21 echo '<a href="file.php">link</a>'; 24 <a href="file.php?var=value">link</a><a href="file.php">link</a>
|