/PHP-7.3/ext/mysqli/tests/ |
H A D | mysqli_stmt_param_count.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_param_count())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stmt_param_count($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 if (false !== ($tmp = mysqli_stmt_param_count($stmt))) 28 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 40 gettype($tmp), $tmp); 52 printf("[40] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 58 if (!is_null($tmp = @mysqli_stmt_param_count())) [all …]
|
H A D | mysqli_real_query.phpt | 12 $tmp = NULL; 16 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 58 if (!is_array($tmp) || empty($tmp) || !isset($tmp['p_version']) || ('' == $tmp['p_version'])) { 60 var_dump($tmp); 74 if (!is_array($tmp) || empty($tmp) || !isset($tmp['f_version']) || ('' == $tmp['f_version'])) { 76 var_dump($tmp); [all …]
|
H A D | mysqli_send_query.phpt | 20 $tmp = NULL; 23 if (NULL !== ($tmp = @mysqli_send_query())) 24 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 26 if (NULL !== ($tmp = @mysqli_send_query($link))) 27 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 35 if (NULL !== ($tmp = @mysqli_send_query($link, $query))) 36 printf("[004] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 38 if (!is_int($tmp = mysqli_send_query($link, 'SELECT 1'))) 39 printf("[005] Expecting integer/any value, got %s/%s\n", gettype($tmp), $tmp); 43 if (NULL !== ($tmp = mysqli_send_query($link, 'SELECT 1'))) [all …]
|
H A D | mysqli_query.phpt | 13 $tmp = NULL; 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 25 printf("[002a] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp); 28 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 49 var_dump($tmp[""]); 63 if (!is_array($tmp) || empty($tmp) || !isset($tmp['p_version']) || ('' == $tmp['p_version'])) { 65 var_dump($tmp); 78 if (!is_array($tmp) || empty($tmp) || !isset($tmp['f_version']) || ('' == $tmp['f_version'])) { 80 var_dump($tmp); [all …]
|
H A D | mysqli_error_unicode.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_error())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_error($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 $tmp = mysqli_error($link); 30 if (!is_string($tmp) || ('' !== $tmp)) 31 …printf("[004] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_errno($li… 35 $tmp = mysqli_error($link); 36 var_dump(str_replace($db.".", "", $tmp));
|
H A D | mysqli_rollback.phpt | 22 $tmp = NULL; 26 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 50 $tmp = mysqli_rollback($link); 51 if ($tmp !== true) 52 printf("[009] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 56 $tmp = mysqli_fetch_assoc($res); 57 if (0 != $tmp['num']) [all …]
|
H A D | mysqli_commit.phpt | 20 $tmp = NULL; 24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 48 $tmp = mysqli_commit($link); 49 if ($tmp !== true) 50 printf("[009] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 57 $tmp = mysqli_fetch_assoc($res); 58 if (1 != $tmp['num']) [all …]
|
H A D | mysqli_connect.phpt | 13 $tmp = NULL; 24 printf("[001] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 27 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 28 printf("[002] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 32 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 33 printf("[003] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 38 printf("[004] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 43 printf("[005] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 48 printf("[006] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 53 printf("[007] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_insert_id.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_insert_id())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 if (!is_null($tmp = @mysqli_insert_id($link))) 21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[003] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 34 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt))) 35 printf("[005] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 45 if (0 !== ($tmp = mysqli_stmt_insert_id($stmt))) 46 printf("[007] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_disable_reads_from_master.phpt | 17 $tmp = NULL; 20 if (NULL !== ($tmp = @mysqli_disable_reads_from_master())) 21 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (NULL !== ($tmp = @mysqli_disable_reads_from_master($link))) 24 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (!is_bool($tmp = mysqli_disable_reads_from_master($link))) 32 printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp); 36 if (NULL !== ($tmp = mysqli_disable_reads_from_master($link))) 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_dump_debug_info.phpt | 13 $tmp = NULL; 16 if (NULL !== ($tmp = @mysqli_dump_debug_info())) 17 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (NULL !== ($tmp = @mysqli_dump_debug_info($link))) 20 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 28 if (!is_bool($tmp = mysqli_dump_debug_info($link))) 30 gettype($tmp), $tmp, 35 if (false !== ($tmp = mysqli_dump_debug_info($link))) 37 gettype($tmp), $tmp,
|
H A D | mysqli_enable_reads_from_master.phpt | 17 $tmp = NULL; 20 if (NULL !== ($tmp = @mysqli_enable_reads_from_master())) 21 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (NULL !== ($tmp = @mysqli_enable_reads_from_master($link))) 24 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (!is_bool($tmp = mysqli_enable_reads_from_master($link))) 32 printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp); 36 if (NULL !== ($tmp = mysqli_enable_reads_from_master($link))) 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_stmt_attr_set.phpt | 13 $tmp = NULL; 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 45 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 151 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 154 printf("[011] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 160 printf("[013] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 163 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_close.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_stmt_close())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_stmt_close($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 if (false !== ($tmp = mysqli_stmt_close($stmt))) 29 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 57 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_get_warnings.phpt | 16 $tmp = NULL; 20 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 33 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 46 …ing object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 66 printf("[014] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 75 …ing object/mysqli_warning, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : … 79 printf("[018] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 82 printf("[020] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_character_set_name_oo.phpt | 14 $tmp = NULL; 22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 $tmp = $res->fetch_assoc(); 28 $version = explode('.', $tmp['server_version']); 37 $tmp = $res->fetch_assoc(); 39 if (!$tmp['charset']) 43 if ($tmp['charset'] !== $charset) { 44 if ($tmp['collation'] === $charset) { 46 $tmp['collation'], $tmp['charset'], gettype($charset), $charset); 61 printf("[013] Expecting false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_error_oo.phpt | 13 $tmp = NULL; 17 if ('' !== ($tmp = @$mysqli->error)) 18 printf("[001] Expecting empty string, got %s/'%s'\n", gettype($tmp), $tmp); 24 $tmp = $mysqli->error; 25 if (!is_string($tmp) || ('' !== $tmp)) 26 …printf("[003] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno, … 33 $tmp = $mysqli->error; 34 if (!is_string($tmp) || !preg_match("/Table '\w*\.test' doesn't exist/su", $tmp)) 35 …ecting string/[Table... doesn't exit], got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno,…
|
H A D | mysqli_autocommit.phpt | 22 $tmp = NULL; 26 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[005] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[009] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 79 if ((!$tmp = mysqli_fetch_assoc($res)) || (1 != $tmp['num'])) 99 printf("[022] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 114 if (0 != $tmp['num']) 127 if ((!$tmp = mysqli_fetch_assoc($res)) || (1 != $tmp['num'])) [all …]
|
H A D | mysqli_stmt_get_result_seek.phpt | 65 printf("[011] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp); 68 printf("[012] Expecting boolean/false got %s/%s\n", gettype($tmp), $tmp); 71 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 78 if (true !== $tmp) 85 if (false !== $tmp) 93 printf("[015] Expecting boolan/true got %s/%s\n", gettype($tmp), $tmp); 96 printf("[016] Expecting array got %s/%s\n", gettype($tmp), $tmp); 101 printf("[017] Expecting false got %s/%s\n", gettype($tmp), $tmp); 104 printf("[018] Expecting false got %s/%s\n", gettype($tmp), $tmp); 109 printf("[019] Expecting false got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_real_escape_string_nobackslash.phpt | 17 if ('\\' !== ($tmp = mysqli_real_escape_string($link, '\\'))) 18 printf("[002] Expecting \\, got %s\n", $tmp); 20 if ('"' !== ($tmp = mysqli_real_escape_string($link, '"'))) 21 printf("[003] Expecting \", got %s\n", $tmp); 23 if ("''" !== ($tmp = mysqli_real_escape_string($link, "'"))) 24 printf("[004] Expecting '', got %s\n", $tmp); 26 if ("\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 27 printf("[005] Expecting \\n, got %s\n", $tmp); 29 if ("\r" !== ($tmp = mysqli_real_escape_string($link, "\r"))) 30 printf("[006] Expecting \\r, got %s\n", $tmp); [all …]
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | copy_variation7.phpt | 20 $file = $file_path."/copy_variation7.tmp"; 25 $symlink = $file_path."/copy_variation7_symlink.tmp"; 26 $hardlink = $file_path."/copy_variation7_hardlink.tmp"; 41 var_dump( is_link($file_path."/copy_copy_variation7_symlink.tmp") ); 42 var_dump( is_file($file_path."/copy_copy_variation7_symlink.tmp") ); 43 var_dump( filesize($file_path."/copy_copy_variation7_symlink.tmp") ); 59 unlink($file_path."/copy_copy_variation7_symlink.tmp"); 60 unlink($file_path."/copy_copy_variation7_hardlink.tmp"); 61 unlink($file_path."/copy_variation7_symlink.tmp"); 62 unlink($file_path."/copy_variation7_hardlink.tmp"); [all …]
|
H A D | readlink_realpath_basic1.phpt | 31 symlink("$file_path/readlink_realpath_basic1/home/readlink_realpath_basic1.tmp", 38 "$file_path/readlink_realpath_basic1/home/readlink_realpath_basic1_link.tmp", 45 "$file_path/readlink_realpath_basic1/..readlink_realpath_basic1_link.tmp", 64 unlink("$name_prefix/home/test/readlink_realpath_basic1.tmp"); 65 unlink("$name_prefix/home/readlink_realpath_basic1.tmp"); 66 unlink("$name_prefix/readlink_realpath_basic1.tmp"); 67 unlink("$name_prefix/home/test/readlink_realpath_basic1_link.tmp"); 68 unlink("$name_prefix/home/readlink_realpath_basic1_link.tmp"); 77 string(%d) "%s/readlink_realpath_basic1/home/readlink_realpath_basic1.tmp" 78 string(%d) "%s/readlink_realpath_basic1/home/readlink_realpath_basic1.tmp" [all …]
|
H A D | realpath_basic3.phpt | 25 "./realpath_basic/home/realpath_basic.tmp", 26 "./realpath_basic/realpath_basic.tmp", 27 "./realpath_basic//home/test//../test/./realpath_basic.tmp", 28 "./realpath_basic/home//../././realpath_basic.tmp", 32 "./realpath_basicx000/home/realpath_basic.tmp", 54 unlink("$name_prefix/home/test/realpath_basic.tmp"); 55 unlink("$name_prefix/home/realpath_basic.tmp"); 56 unlink("$name_prefix/realpath_basic.tmp"); 67 string(%d) "%srealpath_basic%shome%srealpath_basic.tmp" 70 string(%d) "%srealpath_basic%srealpath_basic.tmp" [all …]
|
/PHP-7.3/ext/standard/tests/streams/ |
H A D | stream_get_contents_001.phpt | 6 $tmp = tmpfile(); 8 fwrite($tmp, "12345"); 10 echo stream_get_contents($tmp, 2, 5), "--\n"; 11 echo stream_get_contents($tmp, 2), "--\n"; 12 echo stream_get_contents($tmp, 2, 3), "--\n"; 13 echo stream_get_contents($tmp, 2, -1), "--\n"; 15 @unlink($tmp);
|
/PHP-7.3/ext/hash/ |
H A D | hash_ripemd.c | 248 tmp = 0; in RIPEMD128Transform() 311 tmp = a; a = aa; aa = tmp; in RIPEMD256Transform() 319 tmp = b; b = bb; bb = tmp; in RIPEMD256Transform() 327 tmp = c; c = cc; cc = tmp; in RIPEMD256Transform() 335 tmp = d; d = dd; dd = tmp; in RIPEMD256Transform() 346 tmp = 0; in RIPEMD256Transform() 508 tmp = b; b = bb; bb = tmp; in RIPEMD320Transform() 516 tmp = d; d = dd; dd = tmp; in RIPEMD320Transform() 524 tmp = a; a = aa; aa = tmp; in RIPEMD320Transform() 532 tmp = c; c = cc; cc = tmp; in RIPEMD320Transform() [all …]
|