Home
last modified time | relevance | path

Searched refs:printf (Results 1 – 25 of 720) sorted by relevance

12345678910>>...29

/PHP-8.0/tests/strings/
H A D002.phpt12 printf("printf test 2:%d\n", 42);
13 printf("printf test 3:%f\n", 10.0/3);
14 printf("printf test 4:%.10f\n", 10.0/3);
15 printf("printf test 5:%-10.2f\n", 2.5);
16 printf("printf test 6:%-010.2f\n", 2.5);
17 printf("printf test 7:%010.2f\n", 2.5);
25 printf("printf test 13:%5d\n", -12);
26 printf("printf test 14:%c\n", 64);
27 printf("printf test 15:%b\n", 170);
28 printf("printf test 16:%x\n", 170);
[all …]
/PHP-8.0/ext/standard/tests/strings/
H A Dbug26973.phpt6 printf("%+05d\n", 200);
7 printf("%+05d\n", -200);
8 printf("%+05f\n", 200);
9 printf("%+05f\n", -200);
10 printf("%+05u\n", 200);
11 printf("%+05u\n", -200);
13 printf("%05d\n", 200);
14 printf("%05d\n", -200);
15 printf("%05f\n", 200);
16 printf("%05f\n", -200);
[all …]
H A Dsprintf_star.phpt11 printf("%.*f\n", 10, $f);
12 printf("%.*G\n", 10, $f);
13 printf("%.*g\n", -1, $fx);
14 printf("%.*G\n", -1, $fx);
15 printf("%.*h\n", -1, $fx);
16 printf("%.*H\n", -1, $fx);
20 printf("%*f\n", 10, $f);
21 printf("%*G\n", 10, $f);
32 printf("%2$.*f\n", 10, $f);
34 printf("%*2\$f\n", $f, 10);
[all …]
H A Dcrc32.phpt7 printf("%u\n", crc32($i));
9 printf("%u\n", crc32("1234567890123456"));
10 printf("%u\n", crc32("1234567890123456abc"));
11 printf("%u\n", crc32("12345678901234561234567890123456"));
12 printf("%u\n", crc32("12345678901234561234567890123456abc"));
13 printf("%u\n", crc32("123456789012345612345678901234561234567890123456"));
14 printf("%u\n", crc32("123456789012345612345678901234561234567890123456abc"));
15 printf("%u\n", crc32("1234567890123456123456789012345612345678901234561234567890123456"));
16 printf("%u\n", crc32("1234567890123456123456789012345612345678901234561234567890123456abc"));
17 printf("%u\n", crc32("12345678901234561234567890123456123456789012345612345678901234561234567890123…
[all …]
H A Dprintf_basic3.phpt2 Test printf() function : basic functionality - float format
23 $result = printf($format);
28 $result = printf($format1, $arg1);
31 $result = printf($format11, $arg1);
36 $result = printf($format2, $arg1, $arg2);
39 $result = printf($format22, $arg1, $arg2);
44 $result = printf($format3, $arg1, $arg2, $arg3);
55 -- Calling printf() with no arguments--
59 -- Calling printf() with one arguments--
65 -- Calling printf() with two arguments--
[all …]
H A Dprintf_basic2.phpt2 Test printf() function : basic functionality - integer format
17 echo "\n-- Calling printf() with no arguments --\n";
18 $result = printf($format);
22 echo "\n-- Calling printf() with one arguments--\n";
23 $result = printf($format1, $arg1);
28 $result = printf($format2, $arg1, $arg2);
33 $result = printf($format3, $arg1, $arg2, $arg3);
41 -- Calling printf() with no arguments --
45 -- Calling printf() with one arguments--
49 -- Calling printf() with two arguments--
[all …]
H A Dprintf_basic4.phpt2 Test printf() function : basic functionality - bool format
17 echo "\n-- Calling printf() with no arguments --\n";
18 $result = printf($format);
22 echo "\n-- Calling printf() with one arguments--\n";
23 $result = printf($format1, $arg1);
28 $result = printf($format2, $arg1, $arg2);
33 $result = printf($format3, $arg1, $arg2, $arg3);
40 -- Calling printf() with no arguments --
44 -- Calling printf() with one arguments--
48 -- Calling printf() with two arguments--
[all …]
H A Dprintf_basic5.phpt2 Test printf() function : basic functionality - char format
17 echo "\n-- Calling printf() with no arguments --\n";
18 $result = printf($format);
22 echo "\n-- Calling printf() with one arguments --\n";
23 $result = printf($format1, $arg1);
28 $result = printf($format2, $arg1, $arg2);
33 $result = printf($format3, $arg1, $arg2, $arg3);
40 -- Calling printf() with no arguments --
44 -- Calling printf() with one arguments --
48 -- Calling printf() with two arguments --
[all …]
H A Dprintf_basic9.phpt24 $result = printf($format);
29 $result = printf($format1, $arg1);
32 $result = printf($format11, $arg1);
37 $result = printf($format2, $arg1, $arg2);
40 $result = printf($format22, $arg1, $arg2);
45 $result = printf($format3, $arg1, $arg2, $arg3);
48 $result = printf($format33, $arg1, $arg2, $arg3);
56 -- Calling printf() with no arguments --
60 -- Calling printf() with one arguments --
66 -- Calling printf() with two arguments --
[all …]
H A Dprintf_error.phpt2 Test printf() function : error conditions
5 echo "*** Testing printf() : error conditions ***\n";
10 var_dump( printf() );
24 var_dump( printf($format1) );
29 var_dump( printf($format2,$arg1) );
34 var_dump( printf($format3,$arg1,$arg2) );
41 var_dump( printf($format2) );
46 var_dump( printf($format3,$arg1) );
53 var_dump( printf($format3) );
60 *** Testing printf() : error conditions ***
[all …]
H A Dprintf_basic6.phpt16 echo "\n-- Calling printf() with no arguments --\n";
17 $result = printf($format);
21 echo "\n-- Calling printf() with one argument --\n";
22 $result = printf($format1, $arg1);
26 echo "\n-- Calling printf() with two arguments --\n";
27 $result = printf($format2, $arg1, $arg2);
32 $result = printf($format3, $arg1, $arg2, $arg3);
39 -- Calling printf() with no arguments --
43 -- Calling printf() with one argument --
47 -- Calling printf() with two arguments --
[all …]
H A Dprintf_basic7.phpt2 Test printf() function : basic functionality - unsigned format
23 echo "\n-- Calling printf() with no arguments --\n";
24 $result = printf($format);
28 echo "\n-- Calling printf() with one arguments --\n";
29 $result = printf($format1, $arg1);
34 $result = printf($format2, $arg1, $arg2);
39 $result = printf($format3, $arg1, $arg2, $arg3);
47 -- Calling printf() with no arguments --
51 -- Calling printf() with one arguments --
55 -- Calling printf() with two arguments --
[all …]
H A Dprintf_basic8.phpt2 Test printf() function : basic functionality - octal format
22 echo "\n-- Calling printf() with no arguments --\n";
23 $result = printf($format);
27 echo "\n-- Calling printf() with one arguments --\n";
28 $result = printf($format1, $arg1);
33 $result = printf($format2, $arg1, $arg2);
38 $result = printf($format3, $arg1, $arg2, $arg3);
46 -- Calling printf() with no arguments --
50 -- Calling printf() with one arguments --
54 -- Calling printf() with two arguments --
[all …]
H A Dprintf_basic1.phpt2 Test printf() function : basic functionality - string format
16 echo "\n-- Calling printf() with no arguments --\n";
17 $result = printf($format);
21 echo "\n-- Calling printf() with one arguments --\n";
22 $result = printf($format1, $arg1);
27 $result = printf($format2, $arg1, $arg2);
33 $result = printf($format3, $arg1, $arg2, $arg3);
41 -- Calling printf() with no arguments --
45 -- Calling printf() with one arguments --
49 -- Calling printf() with two arguments --
[all …]
H A Dprintf_variation1.phpt2 Test printf() function : usage variations - unexpected values for format argument
88 $result = printf($value);
97 $result = printf($value, $arg1);
106 $result = printf($value, $arg1, $arg2);
196 printf(): Argument #1 ($format) must be of type string, array given
197 printf(): Argument #1 ($format) must be of type string, array given
198 printf(): Argument #1 ($format) must be of type string, array given
201 printf(): Argument #1 ($format) must be of type string, array given
202 printf(): Argument #1 ($format) must be of type string, array given
203 printf(): Argument #1 ($format) must be of type string, array given
[all …]
/PHP-8.0/
H A D.gdbinit132 printf ") "
144 printf "\n"
274 printf "\n"
305 printf "}\n"
317 printf " "
368 printf "}\n"
451 printf " "
465 printf " "
522 printf "\""
534 printf "\""
[all …]
/PHP-8.0/ext/filter/tests/
H A D033_run.inc28 printf("%-20s",$filter);
29 printf("%-5s",$result[0]);
30 printf("%-3s",$result[1]);
31 printf("%-15s",$result[2]);
32 printf("%-20s",$result[3]);
33 printf("%-10s",$result[4]);
34 printf("%-5s",$result[5]);
35 printf("%-20s",$result[6]);
36 printf("%-15s",$result[7]);
37 printf("%-10s",$result[8]);
[all …]
/PHP-8.0/ext/mysqli/tests/
H A Dmysqli_class_mysqli_driver_interface.phpt15 printf("Parent class:\n");
18 printf("\nMethods:\n");
29 printf("Dumping list of missing methods.\n");
33 printf("Dumping list of unexpected methods.\n");
37 printf("ok\n");
39 printf("\nClass variables:\n");
43 printf("%s\n", $var);
45 printf("\nObject variables:\n");
48 printf("%s\n", $var);
50 printf("\nMagic, magic properties:\n");
[all …]
H A Dmysqli_autocommit_oo.phpt31 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
34 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
39 printf("[005] Cannot turn off autocommit\n");
45 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
49 printf("[008] Cannot turn on autocommit\n");
52 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
59 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
65 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
74 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_real_escape_string_unicode.phpt15 printf("[004] Expecting фу\\\\бар, got %s\n", $tmp);
18 printf("[005] Expecting бар\"фус, got %s\n", $tmp);
21 printf("[006] Expecting лала'лали, got %s\n", $tmp);
24 printf("[007] Expecting абра\\nкадабра, got %s\n", $tmp);
27 printf("[008] Expecting \\r, got %s\n", $tmp);
30 printf("[009] Expecting %s, got %s\n", "иху\\0аху", $tmp);
39 printf("[011] Expecting 富\\\\酒吧, got %s\n", $tmp);
42 printf("[012] Expecting 酒吧\"小题大做, got %s\n", $tmp);
45 printf("[013] Expecting 拉拉'西雅图, got %s\n", $tmp);
48 printf("[014] Expecting 阿卜拉\\n轻, got %s\n", $tmp);
[all …]
H A Dmysqli_autocommit.phpt30 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
33 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
38 printf("[008] Cannot turn off autocommit\n");
41 printf("[009] Expecting true, got %s/%s\n", gettype($tmp), $tmp);
44 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
48 printf("[011] Cannot turn on autocommit\n");
51 printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
58 printf("[014] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
61 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
83 printf("[021] Cannot turn on autocommit\n");
[all …]
H A Dmysqli_get_warnings.phpt19 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
25 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[005] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
39 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
42 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
49 printf("[009] Borked object, method next is missing\n");
68 printf("[015] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
71 printf("[016] Expecting 2 warnings, got %d warnings", $tmp);
90 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_stmt_execute_stored_proc.phpt21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
50 printf("[018] Results seem wrong, got %s, [%d] %s\n",
65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
88 printf("[026] Results seem wrong, got %s, [%d] %s\n",
102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
128 printf("[035] Results seem wrong, got %s, [%d] %s\n",
140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link));
170 printf("[045] Results seem wrong, got %s, [%d] %s\n",
[all …]
H A Dmysqli_affected_rows.phpt17 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n",
21 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
24 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
27 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
35 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
41 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
47 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
54 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
60 printf("[019] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
[all …]
/PHP-8.0/scripts/dev/
H A Dsearch_underscores.php71 printf("\n");
72 printf("Modules: %5d\n", $cnt_modules);
73 printf("Classes: %5d\n", $cnt_classes);
74 printf("Methods: %5d\n", $cnt_methods);
75 printf("\n");
76 printf("Names: %5d\n", $cnt);
77 printf("Errors: %5d (%.1f%%)\n", $err, round($err * 100 / $cnt, 1));
78 printf("\n");
93 printf("\n");

Completed in 28 milliseconds

12345678910>>...29