Home
last modified time | relevance | path

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

12345678910>>...30

/php-src/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-src/ext/standard/tests/strings/
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 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 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 …]
/php-src/
H A D.gdbinit132 printf ") "
144 printf "\n"
274 printf "\n"
305 printf "}\n"
317 printf " "
378 printf "}\n"
461 printf " "
475 printf " "
532 printf "\""
544 printf "\""
[all …]
/php-src/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-src/ext/mysqli/tests/
H A Dmysqli_class_mysqli_driver_interface.phpt10 printf("Parent class:\n");
13 printf("\nMethods:\n");
23 printf("Dumping list of missing methods.\n");
27 printf("Dumping list of unexpected methods.\n");
31 printf("ok\n");
34 printf("\nClass variables:\n");
38 printf("%s\n", $var);
41 printf("\nObject variables:\n");
44 printf("%s\n", $var);
47 printf("\nMagic, magic properties:\n");
[all …]
H A Dmysqli_stmt_get_result.phpt19 printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
47 printf("[010] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
67 printf("[016] NULL, got %s/%s\n", gettype($tmp), var_export($tmp, 1));
73 printf("[017] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
99 printf("[027] [%d] [%s]\n", mysqli_errno($link), mysqli_error($link));
110 printf("[030] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
127 printf("[034] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
141 printf("[038] Expecting array, got %s/%s, [%d] %s\n",
146 printf("[039] Expecting boolean/false, got %s/%s, [%d] %s\n",
150 printf("[041] [%d] [%s]\n", mysqli_errno($link), mysqli_error($link));
[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);
89 printf("[022] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
[all …]
H A Dmysqli_affected_rows.phpt18 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n",
22 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
25 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
28 printf("[008] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
31 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
36 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp);
42 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
48 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp);
55 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp);
61 printf("[019] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp);
[all …]
H A Dmysqli_autocommit_oo.phpt26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
34 printf("[005] Cannot turn off autocommit\n");
40 printf("[007] [%d] %s\n", $mysqli->errno, $mysqli->error);
44 printf("[008] Cannot turn on autocommit\n");
47 printf("[009] [%d] %s\n", $mysqli->errno, $mysqli->error);
54 printf("[011] [%d] %s\n", $mysqli->errno, $mysqli->error);
57 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
60 printf("[013] [%d] %s\n", $mysqli->errno, $mysqli->error);
69 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_affected_rows_oo.phpt23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
26 printf("[003] [%d] %s\n", $mysqli->errno, $mysqli->error);
29 printf("[004] [%d] %s\n", $mysqli->errno, $mysqli->error);
32 printf("[005] [%d] %s\n", $mysqli->errno, $mysqli->error);
43 printf("[008] [%d] %s\n", $mysqli->errno, $mysqli->error);
49 printf("[010] [%d] %s\n", $mysqli->errno, $mysqli->error);
55 printf("[012] [%d] %s\n", $mysqli->errno, $mysqli->error);
62 printf("[014] [%d] %s\n", $mysqli->errno, $mysqli->error);
68 printf("[015] [%d] %s\n", $mysqli->errno, $mysqli->error);
74 printf("[017] [%d] %s\n", $mysqli->errno, $mysqli->error);
[all …]
H A Dmysqli_real_escape_string_unicode.phpt19 printf("[004] Expecting фу\\\\бар, got %s\n", $tmp);
22 printf("[005] Expecting бар\"фус, got %s\n", $tmp);
25 printf("[006] Expecting лала'лали, got %s\n", $tmp);
28 printf("[007] Expecting абра\\nкадабра, got %s\n", $tmp);
31 printf("[008] Expecting \\r, got %s\n", $tmp);
34 printf("[009] Expecting %s, got %s\n", "иху\\0аху", $tmp);
43 printf("[011] Expecting 富\\\\酒吧, got %s\n", $tmp);
46 printf("[012] Expecting 酒吧\"小题大做, got %s\n", $tmp);
49 printf("[013] Expecting 拉拉'西雅图, got %s\n", $tmp);
52 printf("[014] Expecting 阿卜拉\\n轻, got %s\n", $tmp);
[all …]
/php-src/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 36 milliseconds

12345678910>>...30