Home
last modified time | relevance | path

Searched refs:tmp (Results 26 – 50 of 1152) sorted by relevance

12345678910>>...47

/PHP-7.4/ext/standard/tests/streams/
H A Dbug46426.phpt6 $tmp = tmpfile();
8 fwrite($tmp, "12345");
10 echo stream_get_contents($tmp, 2, 1);
12 echo stream_get_contents($tmp, -1);
14 echo stream_get_contents($tmp, -1, 0);
16 echo stream_get_contents($tmp, -1, 2);
18 echo stream_get_contents($tmp, 0, 0);
20 echo stream_get_contents($tmp, 1, 0);
22 echo stream_get_contents($tmp, -1);
24 @unlink($tmp);
H A Dbug48309.phpt6 $tmp = tmpfile();
7 fwrite($tmp, 'test');
8 fseek($tmp, 0, SEEK_SET);
12 fseek($tmp, 0, SEEK_SET);
13 stream_copy_to_stream($tmp, STDOUT, 2);
16 var_dump(stream_get_contents($tmp));
20 fseek($tmp, 0, SEEK_SET);
21 fpassthru($tmp);
24 var_dump(stream_get_contents($tmp));
H A Dstream_get_contents_001.phpt6 $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.4/ext/mysqli/tests/
H A Dmysqli_change_user.phpt13 $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);
29 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
43 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
74 printf("[011] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_affected_rows_oo.phpt15 printf("[000a] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[006] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
40 printf("[007] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
46 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
52 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
59 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
65 printf("[015] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
71 printf("[016] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
77 printf("[018] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_data_seek.phpt13 $tmp = NULL;
16 if (!is_null($tmp = @mysqli_stmt_data_seek()))
17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
28 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
34 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
45 printf("[009] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
53 printf("[011] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[013] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
69 printf("[015] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_sqlstate.phpt13 $tmp = NULL;
16 if (!is_null($tmp = @mysqli_stmt_sqlstate()))
17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
19 if (!is_null($tmp = @mysqli_stmt_sqlstate($link)))
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
30 if (false !== ($tmp = mysqli_stmt_sqlstate($stmt)))
31 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
38 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
43 if ('' === ($tmp = mysqli_stmt_sqlstate($stmt)))
[all …]
H A Dmysqli_prepare_no_object.phpt13 if (false !== ($tmp = mysqli_prepare($link, false)))
14 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : …
17 if (false !== ($tmp = mysqli_prepare($link, '')))
18 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : …
27 if (false !== ($tmp = $mysqli->prepare(false)))
28 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : …
31 if (false !== ($tmp = $mysqli->prepare('')))
32 …] Expecting boolean/false, got %s/%s\n", gettype($tmp), (is_object($tmp) ? var_dump($tmp, true) : …
H A Dmysqli_stmt_get_result.phpt21 $tmp = NULL;
25 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
28 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
37 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
43 if ((NULL !== ($tmp = mysqli_stmt_get_result($stmt))) && (false !== $tmp))
53 printf("[009] non-object, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
68 if ((NULL !== ($tmp = mysqli_stmt_get_result($stmt))) && (false !== $tmp))
75 printf("[016] NULL, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
100 printf("[025] false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
109 printf("[029] false, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
[all …]
H A Dmysqli_stmt_fetch.phpt18 $tmp = NULL;
22 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
34 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
40 if ((NULL !== ($tmp = mysqli_stmt_fetch($stmt))) && (false !== $tmp))
47 printf("[008] NULL, got %s/%s\n", gettype($tmp), $tmp);
62 printf("[012] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
66 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
72 printf("[015] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
77 printf("[016] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_savepoint.phpt20 $tmp = NULL;
23 if (!is_null($tmp = @mysqli_savepoint()))
24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
50 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
59 $tmp = mysqli_rollback($link);
60 if ($tmp !== true)
[all …]
H A Dmysqli_close_oo.phpt13 $tmp = NULL;
20 if (!is_null($tmp = @$mysqli->close($link)))
21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
23 $tmp = $mysqli->close();
24 if (true !== $tmp)
25 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
27 if (false !== ($tmp = @$mysqli->close()))
28 printf("[004] Expecting false got %s/%s\n", gettype($tmp), $tmp);
30 if (false !== ($tmp = @$mysqli->query("SELECT 1")))
31 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_release_savepoint.phpt20 $tmp = NULL;
23 if (!is_null($tmp = @mysqli_release_savepoint()))
24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
38 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
50 … printf("[009] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp);
59 $tmp = mysqli_commit($link);
60 if ($tmp !== true)
[all …]
H A Dmysqli_stmt_result_metadata.phpt13 $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);
28 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
34 printf("[006] Expecting object, got %s/%s\n", gettype($tmp), $tmp);
38 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
58 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
60 if (empty($tmp[0]) || empty($tmp[1]) || $tmp[0] != $field0_direct) {
62 var_dump($tmp);
86 printf("[017] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_prepare.phpt19 $tmp = NULL;
22 if (!is_null($tmp = @mysqli_stmt_prepare()))
23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 if (!is_null($tmp = @mysqli_stmt_prepare($link)))
26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
33 if (NULL !== ($tmp = @mysqli_stmt_prepare($stmt)))
34 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
36 if (false !== ($tmp = mysqli_stmt_prepare($stmt, '')))
37 printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
40 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_thread_id.phpt13 $tmp = NULL;
16 if (!is_null($tmp = @mysqli_thread_id()))
17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
19 if (!is_null($tmp = @mysqli_thread_id($link)))
20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
24 if (!is_int($tmp = mysqli_thread_id($link)) || (0 === $tmp))
26 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link));
33 if (false !== ($tmp = mysqli_thread_id($link)))
34 printf("[005] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
H A Dmysqli_character_set_name.phpt14 $tmp = NULL;
18 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
24 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
32 $tmp = mysqli_fetch_assoc($res);
43 $tmp = mysqli_fetch_assoc($res);
45 if (!$tmp['charset'])
49 if ($tmp['charset'] !== $charset) {
52 $tmp['collation'], $tmp['charset'], gettype($charset), $charset);
66 printf("[013] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_error.phpt13 $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);
27 $tmp = mysqli_error($link);
28 if (!is_string($tmp) || ('' !== $tmp))
29 …printf("[004] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, mysqli_errno($li…
36 $tmp = mysqli_error($link);
37 if (!is_string($tmp) || !preg_match("/Table '\w*\.test' doesn't exist/su", $tmp))
[all …]
H A Dmysqli_explain_metadata.phpt38 $num_rows, gettype($tmp), $tmp);
42 $num_fields, gettype($tmp), $tmp);
47 $num_fields, gettype($tmp), $tmp);
77 $num_rows, gettype($tmp), $tmp);
81 $num_fields, gettype($tmp), $tmp);
85 $num_fields, gettype($tmp), $tmp);
89 $num_fields, gettype($tmp), $tmp);
94 $num_fields, gettype($tmp), $tmp);
111 $num_rows, gettype($tmp), $tmp);
118 $num_fields, gettype($tmp), $tmp);
[all …]
H A Dmysqli_stmt_param_count.phpt13 $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 Dmysqli_stmt_execute.phpt19 $tmp = NULL;
23 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[004] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
42 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp);
49 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
56 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
80 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
91 gettype($tmp), $tmp, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
125 printf("[027] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
[all …]
/PHP-7.4/main/
H A Dreentrancy.c121 if (tmp) { in php_localtime_r()
128 return tmp; in php_localtime_r()
137 char *tmp; in php_ctime_r() local
142 if (tmp) { in php_ctime_r()
144 tmp = buf; in php_ctime_r()
149 return tmp; in php_ctime_r()
158 char *tmp; in php_asctime_r() local
163 if (tmp) { in php_asctime_r()
165 tmp = buf; in php_asctime_r()
170 return tmp; in php_asctime_r()
[all …]
/PHP-7.4/tests/lang/
H A Dbug21600.phpt7 $tmp = array();
8 $tmp['foo'] = "test";
9 $tmp['foo'] = &bar($tmp['foo']);
10 var_dump($tmp);
12 unset($tmp);
14 $tmp = array();
15 $tmp['foo'] = "test";
16 $tmp['foo'] = &fubar($tmp['foo']);
17 var_dump($tmp);
/PHP-7.4/ext/standard/tests/file/
H A Dunlink_variation10.phpt21 $workDir = "unlinkVar10.tmp";
22 $tmpDir = "subDir.tmp";
86 -- unlinking soft link unlinkVar10.tmp/subDir.tmp --
88 -- unlinking soft link ./unlinkVar10.tmp/subDir.tmp --
90 -- unlinking soft link unlinkVar10.tmp/../unlinkVar10.tmp/subDir.tmp --
92 -- unlinking soft link /%s/unlinkVar10.tmp/subDir.tmp --
94 -- unlinking soft link /%s/./unlinkVar10.tmp/subDir.tmp --
96 -- unlinking soft link /%s/unlinkVar10.tmp/../unlinkVar10.tmp/subDir.tmp --
98 -- unlinking soft link unlinkVar10.tmp//subDir.tmp --
100 -- unlinking soft link /%s//unlinkVar10.tmp//subDir.tmp --
[all …]
/PHP-7.4/ext/soap/
H A Dphp_packet_soap.c189 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
194 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
201 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
213 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
214 tmp = get_node(tmp->children, "Value"); in parse_packet_soap()
215 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
221 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
223 tmp = get_node(tmp->children,"Text"); in parse_packet_soap()
224 if (tmp != NULL && tmp->children != NULL) { in parse_packet_soap()
262 zval tmp; in parse_packet_soap() local
[all …]

Completed in 38 milliseconds

12345678910>>...47