mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
Fix indentation/trailing whitespaces of tests
This commit is contained in:
parent
169805777c
commit
0253a232c3
@ -22,7 +22,7 @@ var_dump(highlight_file('data:,<?php echo "test ?>'));
|
||||
$data = '
|
||||
<?php
|
||||
class test {
|
||||
public $var = 1;
|
||||
public $var = 1;
|
||||
private function foo() { echo "foo"; }
|
||||
public function bar() { var_dump(test::foo()); }
|
||||
}
|
||||
@ -51,7 +51,7 @@ bool(false)
|
||||
</span>
|
||||
</code>bool(true)
|
||||
<code><span style="color: #000000">
|
||||
<br /><span style="color: #0000BB"><?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">test </span><span style="color: #007700">{<br /> public </span><span style="color: #0000BB">$var </span><span style="color: #007700">= </span><span style="color: #0000BB">1</span><span style="color: #007700">; <br /> private function </span><span style="color: #0000BB">foo</span><span style="color: #007700">() { echo </span><span style="color: #DD0000">"foo"</span><span style="color: #007700">; }<br /> public function </span><span style="color: #0000BB">bar</span><span style="color: #007700">() { </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">test</span><span style="color: #007700">::</span><span style="color: #0000BB">foo</span><span style="color: #007700">()); }<br />}<br /></span><span style="color: #0000BB">?></span>
|
||||
<br /><span style="color: #0000BB"><?php<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">test </span><span style="color: #007700">{<br /> public </span><span style="color: #0000BB">$var </span><span style="color: #007700">= </span><span style="color: #0000BB">1</span><span style="color: #007700">;<br /> private function </span><span style="color: #0000BB">foo</span><span style="color: #007700">() { echo </span><span style="color: #DD0000">"foo"</span><span style="color: #007700">; }<br /> public function </span><span style="color: #0000BB">bar</span><span style="color: #007700">() { </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">test</span><span style="color: #007700">::</span><span style="color: #0000BB">foo</span><span style="color: #007700">()); }<br />}<br /></span><span style="color: #0000BB">?></span>
|
||||
</span>
|
||||
</code>bool(true)
|
||||
Done
|
||||
|
Binary file not shown.
@ -20,11 +20,11 @@ echo "*** Testing vfprintf() : unsigned formats and signed & other types of valu
|
||||
|
||||
// defining array of unsigned formats
|
||||
$formats =
|
||||
'%u %+u %-u
|
||||
%lu %Lu %4u %-4u
|
||||
%10.4u %-10.4u %.4u
|
||||
%\'#2u %\'2u %\'$2u %\'_2u
|
||||
%3$u %4$u %1$u %2$u';
|
||||
'%u %+u %-u
|
||||
%lu %Lu %4u %-4u
|
||||
%10.4u %-10.4u %.4u
|
||||
%\'#2u %\'2u %\'$2u %\'_2u
|
||||
%3$u %4$u %1$u %2$u';
|
||||
|
||||
// Arrays of signed and other type of values for the format defined in $format.
|
||||
// Each sub array contains signed values which correspond to each format in $format
|
||||
@ -86,25 +86,25 @@ unlink($data_file);
|
||||
|
||||
-- Iteration 1 --
|
||||
2 0 10
|
||||
123456 u 1234 20000000000
|
||||
2000000000000 22000000000000 12345
|
||||
12 18446744073709551604 18446744073709428160 _3
|
||||
10 123456 2 0
|
||||
123456 u 1234 20000000000
|
||||
2000000000000 22000000000000 12345
|
||||
12 18446744073709551604 18446744073709428160 _3
|
||||
10 123456 2 0
|
||||
-- Iteration 2 --
|
||||
0 0 0
|
||||
123 u 18446744073709551493 123
|
||||
0 0 0
|
||||
1234 0 $0 _0
|
||||
0 123 0 0
|
||||
123 u 18446744073709551493 123
|
||||
0 0 0
|
||||
1234 0 $0 _0
|
||||
0 123 0 0
|
||||
-- Iteration 3 --
|
||||
1 1 1
|
||||
1 u 1 1
|
||||
1 1 1
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
1 u 1 1
|
||||
1 1 1
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
-- Iteration 4 --
|
||||
1 1 0
|
||||
1 u 0 1
|
||||
1 1 0
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
1 u 0 1
|
||||
1 1 0
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
|
Binary file not shown.
@ -20,11 +20,11 @@ echo "*** Testing vprintf() : octal formats and non-octal values ***\n";
|
||||
|
||||
// defining array of octal formats
|
||||
$formats =
|
||||
'%o %+o %-o
|
||||
%lo %Lo %4o %-4o
|
||||
%10.4o %-10.4o %.4o
|
||||
%\'#2o %\'2o %\'$2o %\'_2o
|
||||
%3$o %4$o %1$o %2$o';
|
||||
'%o %+o %-o
|
||||
%lo %Lo %4o %-4o
|
||||
%10.4o %-10.4o %.4o
|
||||
%\'#2o %\'2o %\'$2o %\'_2o
|
||||
%3$o %4$o %1$o %2$o';
|
||||
|
||||
// Arrays of non octal values for the format defined in $format.
|
||||
// Each sub array contains non octal values which correspond to each format in $format
|
||||
@ -83,41 +83,41 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : octal formats and non-octal values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2 0 12
|
||||
361100 o 1777777777777777775456 2322
|
||||
2 0 12
|
||||
361100 o 1777777777777777775456 2322
|
||||
|
||||
30071 14 1777777777777777777764 1777777777777777416700
|
||||
12 361100 2 0
|
||||
int(149)
|
||||
30071 14 1777777777777777777764 1777777777777777416700
|
||||
12 361100 2 0
|
||||
int(151)
|
||||
|
||||
-- Iteration 2 --
|
||||
2 1777777777777777777776 2
|
||||
361100 o 1777777777777720715133 57062645
|
||||
2 1777777777777777777776 2
|
||||
361100 o 1777777777777720715133 57062645
|
||||
|
||||
57060664 4475347 1777777777777721631371 1777777777777720717336
|
||||
2 361100 2 1777777777777777777776
|
||||
int(201)
|
||||
57060664 4475347 1777777777777721631371 1777777777777720717336
|
||||
2 361100 2 1777777777777777777776
|
||||
int(203)
|
||||
|
||||
-- Iteration 3 --
|
||||
0 0 0
|
||||
173 o 1777777777777777777605 173
|
||||
0 0 0
|
||||
173 o 1777777777777777777605 173
|
||||
|
||||
2322 0 $0 _0
|
||||
0 173 0 0
|
||||
int(99)
|
||||
2322 0 $0 _0
|
||||
0 173 0 0
|
||||
int(101)
|
||||
|
||||
-- Iteration 4 --
|
||||
1 1 1
|
||||
1 o 1 1
|
||||
1 1 1
|
||||
1 o 1 1
|
||||
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(75)
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(77)
|
||||
|
||||
-- Iteration 5 --
|
||||
1 1 0
|
||||
1 o 0 1
|
||||
1 1 0
|
||||
1 o 0 1
|
||||
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(75)
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(77)
|
||||
|
@ -20,11 +20,11 @@ echo "*** Testing vprintf() : hexa formats and non-hexa values ***\n";
|
||||
|
||||
// defining array of different hexa formats
|
||||
$formats =
|
||||
'%x %+x %-x
|
||||
%lx %Lx %4x %-4x
|
||||
%10.4x %-10.4x %.4x
|
||||
%\'#2x %\'2x %\'$2x %\'_2x
|
||||
%3$x %4$x %1$x %2$x';
|
||||
'%x %+x %-x
|
||||
%lx %Lx %4x %-4x
|
||||
%10.4x %-10.4x %.4x
|
||||
%\'#2x %\'2x %\'$2x %\'_2x
|
||||
%3$x %4$x %1$x %2$x';
|
||||
|
||||
// Arrays of non hexa values for the format defined in $format.
|
||||
// Each sub array contains non hexa values which correspond to each format in $format
|
||||
@ -84,41 +84,41 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : hexa formats and non-hexa values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2 0 a
|
||||
1e240 x fffffffffffffb2e 4d2
|
||||
2 0 a
|
||||
1e240 x fffffffffffffb2e 4d2
|
||||
|
||||
3039 c fffffffffffffff4 fffffffffffe1dc0
|
||||
a 1e240 2 0
|
||||
int(125)
|
||||
3039 c fffffffffffffff4 fffffffffffe1dc0
|
||||
a 1e240 2 0
|
||||
int(127)
|
||||
|
||||
-- Iteration 2 --
|
||||
2 fffffffffffffffe 2
|
||||
1e240 x ffffffffff439a5b bc65a5
|
||||
2 fffffffffffffffe 2
|
||||
1e240 x ffffffffff439a5b bc65a5
|
||||
|
||||
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
|
||||
2 1e240 2 fffffffffffffffe
|
||||
int(164)
|
||||
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
|
||||
2 1e240 2 fffffffffffffffe
|
||||
int(166)
|
||||
|
||||
-- Iteration 3 --
|
||||
0 0 0
|
||||
7b x ffffffffffffff85 7b
|
||||
0 0 0
|
||||
7b x ffffffffffffff85 7b
|
||||
|
||||
4d2 0 $0 _0
|
||||
0 7b 0 0
|
||||
int(90)
|
||||
4d2 0 $0 _0
|
||||
0 7b 0 0
|
||||
int(92)
|
||||
|
||||
-- Iteration 4 --
|
||||
1 1 1
|
||||
1 x 1 1
|
||||
1 1 1
|
||||
1 x 1 1
|
||||
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(75)
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(77)
|
||||
|
||||
-- Iteration 5 --
|
||||
1 1 0
|
||||
1 x 0 1
|
||||
1 1 0
|
||||
1 x 0 1
|
||||
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(75)
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(77)
|
||||
|
@ -20,11 +20,11 @@ echo "*** Testing vprintf() : unsigned formats and signed & other types of value
|
||||
|
||||
// defining array of unsigned formats
|
||||
$formats =
|
||||
'%u %+u %-u
|
||||
%lu %Lu %4u %-4u
|
||||
%10.4u %-10.4u %.4u
|
||||
%\'#2u %\'2u %\'$2u %\'_2u
|
||||
%3$u %4$u %1$u %2$u';
|
||||
'%u %+u %-u
|
||||
%lu %Lu %4u %-4u
|
||||
%10.4u %-10.4u %.4u
|
||||
%\'#2u %\'2u %\'$2u %\'_2u
|
||||
%3$u %4$u %1$u %2$u';
|
||||
|
||||
// Arrays of signed and other type of values for the format defined in $format.
|
||||
// Each sub array contains signed values which correspond to each format in $format
|
||||
@ -76,33 +76,33 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : unsigned formats and signed & other types of values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2 0 10
|
||||
123456 u 1234 20000000000
|
||||
2000000000000 22000000000000 12345
|
||||
12 18446744073709551604 18446744073709428160 _3
|
||||
10 123456 2 0
|
||||
int(143)
|
||||
2 0 10
|
||||
123456 u 1234 20000000000
|
||||
2000000000000 22000000000000 12345
|
||||
12 18446744073709551604 18446744073709428160 _3
|
||||
10 123456 2 0
|
||||
int(145)
|
||||
|
||||
-- Iteration 2 --
|
||||
0 0 0
|
||||
123 u 18446744073709551493 123
|
||||
0 0 0
|
||||
1234 0 $0 _0
|
||||
0 123 0 0
|
||||
int(98)
|
||||
0 0 0
|
||||
123 u 18446744073709551493 123
|
||||
0 0 0
|
||||
1234 0 $0 _0
|
||||
0 123 0 0
|
||||
int(100)
|
||||
|
||||
-- Iteration 3 --
|
||||
1 1 1
|
||||
1 u 1 1
|
||||
1 1 1
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(76)
|
||||
1 1 1
|
||||
1 u 1 1
|
||||
1 1 1
|
||||
#1 1 $1 _1
|
||||
1 1 1 1
|
||||
int(78)
|
||||
|
||||
-- Iteration 4 --
|
||||
1 1 0
|
||||
1 u 0 1
|
||||
1 1 0
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(76)
|
||||
1 1 0
|
||||
1 u 0 1
|
||||
1 1 0
|
||||
#0 1 $1 _0
|
||||
0 1 1 1
|
||||
int(78)
|
||||
|
@ -16,11 +16,11 @@ echo "*** Testing vprintf() : scientific formats and non-scientific values ***\n
|
||||
|
||||
// defining array of non-scientific formats
|
||||
$formats =
|
||||
'%e %+e %-e
|
||||
%le %Le %4e %-4e
|
||||
%10.4e %-10.4e %04e %04.4e
|
||||
%\'#2e %\'2e %\'$2e %\'_2e
|
||||
%3$e %4$e %1$e %2$e';
|
||||
'%e %+e %-e
|
||||
%le %Le %4e %-4e
|
||||
%10.4e %-10.4e %04e %04.4e
|
||||
%\'#2e %\'2e %\'$2e %\'_2e
|
||||
%3$e %4$e %1$e %2$e';
|
||||
|
||||
// Arrays of non scientific values for the format defined in $format.
|
||||
// Each sub array contains non scientific values which correspond to each format in $format
|
||||
@ -72,33 +72,33 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : scientific formats and non-scientific values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2.200000e+0 +2.000000e-1 1.020000e+1
|
||||
1.234562e+5 e -1.234679e+3 1.234679e+3
|
||||
2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3
|
||||
1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5
|
||||
1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1
|
||||
int(232)
|
||||
2.200000e+0 +2.000000e-1 1.020000e+1
|
||||
1.234562e+5 e -1.234679e+3 1.234679e+3
|
||||
2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3
|
||||
1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5
|
||||
1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1
|
||||
int(235)
|
||||
|
||||
-- Iteration 2 --
|
||||
0.000000e+0 +0.000000e+0 0.000000e+0
|
||||
1.230000e+2 e -1.230000e+2 1.230000e+2
|
||||
0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0
|
||||
1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0
|
||||
0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0
|
||||
int(228)
|
||||
0.000000e+0 +0.000000e+0 0.000000e+0
|
||||
1.230000e+2 e -1.230000e+2 1.230000e+2
|
||||
0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0
|
||||
1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0
|
||||
0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0
|
||||
int(231)
|
||||
|
||||
-- Iteration 3 --
|
||||
1.000000e+0 +1.000000e+0 1.000000e+0
|
||||
1.000000e+0 e 1.000000e+0 1.000000e+0
|
||||
1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0
|
||||
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
int(227)
|
||||
1.000000e+0 +1.000000e+0 1.000000e+0
|
||||
1.000000e+0 e 1.000000e+0 1.000000e+0
|
||||
1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0
|
||||
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
int(230)
|
||||
|
||||
-- Iteration 4 --
|
||||
1.000000e+0 +1.000000e+0 0.000000e+0
|
||||
1.000000e+0 e 0.000000e+0 1.000000e+0
|
||||
1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0
|
||||
0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0
|
||||
0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
int(227)
|
||||
1.000000e+0 +1.000000e+0 0.000000e+0
|
||||
1.000000e+0 e 0.000000e+0 1.000000e+0
|
||||
1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0
|
||||
0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0
|
||||
0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
|
||||
int(230)
|
||||
|
@ -16,11 +16,11 @@ echo "*** Testing vprintf() : float formats and non-float values ***\n";
|
||||
|
||||
// defining array of float formats
|
||||
$formats =
|
||||
'%f %+f %-f
|
||||
%lf %Lf %4f %-4f
|
||||
%10.4f %-10.4f %04f %04.4f
|
||||
%\'#2f %\'2f %\'$2f %\'_2f
|
||||
%3$f %4$f %1$f %2$f';
|
||||
'%f %+f %-f
|
||||
%lf %Lf %4f %-4f
|
||||
%10.4f %-10.4f %04f %04.4f
|
||||
%\'#2f %\'2f %\'$2f %\'_2f
|
||||
%3$f %4$f %1$f %2$f';
|
||||
|
||||
// Arrays of non float values for the format defined in $format.
|
||||
// Each sub array contains non float values which correspond to each format in $format
|
||||
@ -72,33 +72,33 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : float formats and non-float values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2.000000 -2.000000 2.000000
|
||||
123456.000000 f -12346789.000000 12346789.000000
|
||||
123200.0000 20000.0000 -40000.000000 22212.0000
|
||||
12345780.000000 1211111.000000 -12111111.000000 -12345634.000000
|
||||
2.000000 123456.000000 2.000000 -2.000000
|
||||
int(244)
|
||||
2.000000 -2.000000 2.000000
|
||||
123456.000000 f -12346789.000000 12346789.000000
|
||||
123200.0000 20000.0000 -40000.000000 22212.0000
|
||||
12345780.000000 1211111.000000 -12111111.000000 -12345634.000000
|
||||
2.000000 123456.000000 2.000000 -2.000000
|
||||
int(247)
|
||||
|
||||
-- Iteration 2 --
|
||||
0.000000 +0.000000 0.000000
|
||||
123.000000 f -123.000000 123.000000
|
||||
0.0000 0.0000 123456.000000 0.0000
|
||||
1234.000000 0.000000 0.000000 0.000000
|
||||
0.000000 123.000000 0.000000 0.000000
|
||||
int(196)
|
||||
0.000000 +0.000000 0.000000
|
||||
123.000000 f -123.000000 123.000000
|
||||
0.0000 0.0000 123456.000000 0.0000
|
||||
1234.000000 0.000000 0.000000 0.000000
|
||||
0.000000 123.000000 0.000000 0.000000
|
||||
int(199)
|
||||
|
||||
-- Iteration 3 --
|
||||
1.000000 +1.000000 1.000000
|
||||
1.000000 f 1.000000 1.000000
|
||||
1.0000 1.0000 1.000000 1.0000
|
||||
1.000000 1.000000 1.000000 1.000000
|
||||
1.000000 1.000000 1.000000 1.000000
|
||||
int(179)
|
||||
1.000000 +1.000000 1.000000
|
||||
1.000000 f 1.000000 1.000000
|
||||
1.0000 1.0000 1.000000 1.0000
|
||||
1.000000 1.000000 1.000000 1.000000
|
||||
1.000000 1.000000 1.000000 1.000000
|
||||
int(182)
|
||||
|
||||
-- Iteration 4 --
|
||||
1.000000 +1.000000 0.000000
|
||||
1.000000 f 0.000000 1.000000
|
||||
1.0000 0.0000 1.000000 0.0000
|
||||
0.000000 1.000000 1.000000 0.000000
|
||||
0.000000 1.000000 1.000000 1.000000
|
||||
int(179)
|
||||
1.000000 +1.000000 0.000000
|
||||
1.000000 f 0.000000 1.000000
|
||||
1.0000 0.0000 1.000000 0.0000
|
||||
0.000000 1.000000 1.000000 0.000000
|
||||
0.000000 1.000000 1.000000 1.000000
|
||||
int(182)
|
||||
|
@ -16,11 +16,11 @@ echo "*** Testing vprintf() : string formats and non-string values ***\n";
|
||||
|
||||
// defining array of string formats
|
||||
$formats =
|
||||
'%s %+s %-s
|
||||
%ls %Ls %4s %-4s
|
||||
%10.4s %-10.4s %04s %04.4s
|
||||
%\'#2s %\'2s %\'$2s %\'_2s
|
||||
%3$s %4$s %1$s %2$s';
|
||||
'%s %+s %-s
|
||||
%ls %Ls %4s %-4s
|
||||
%10.4s %-10.4s %04s %04.4s
|
||||
%\'#2s %\'2s %\'$2s %\'_2s
|
||||
%3$s %4$s %1$s %2$s';
|
||||
|
||||
// Arrays of non string values for the format defined in $format.
|
||||
// Each sub array contains non string values which correspond to each format in $format
|
||||
@ -73,20 +73,20 @@ foreach($args_array as $args) {
|
||||
*** Testing vprintf() : string formats and non-string values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
2.2 0.2 10.2
|
||||
123456.234 s -1234.6789 1234.6789
|
||||
2123 2765 -27654321000 1234
|
||||
12.000000011111 -12.00000111111 -123456.234 3.33
|
||||
10.2 123456.234 2.2 0.2
|
||||
int(172)
|
||||
2.2 0.2 10.2
|
||||
123456.234 s -1234.6789 1234.6789
|
||||
2123 2765 -27654321000 1234
|
||||
12.000000011111 -12.00000111111 -123456.234 3.33
|
||||
10.2 123456.234 2.2 0.2
|
||||
int(175)
|
||||
|
||||
-- Iteration 2 --
|
||||
2 -2 2
|
||||
123456 s -12346789 12346789
|
||||
1232 2000 -40000 2221
|
||||
12345780 1211111 -12111111 -12345634
|
||||
2 123456 2 -2
|
||||
int(132)
|
||||
2 -2 2
|
||||
123456 s -12346789 12346789
|
||||
1232 2000 -40000 2221
|
||||
12345780 1211111 -12111111 -12345634
|
||||
2 123456 2 -2
|
||||
int(135)
|
||||
|
||||
-- Iteration 3 --
|
||||
|
||||
@ -125,17 +125,17 @@ Warning: Array to string conversion in %s on line %d
|
||||
Warning: Array to string conversion in %s on line %d
|
||||
|
||||
Warning: Array to string conversion in %s on line %d
|
||||
Array Array Array
|
||||
Array s Array Array
|
||||
Arra Arra Array Arra
|
||||
Array Array Array Array
|
||||
Array Array Array Array
|
||||
int(131)
|
||||
Array Array Array
|
||||
Array s Array Array
|
||||
Arra Arra Array Arra
|
||||
Array Array Array Array
|
||||
Array Array Array Array
|
||||
int(134)
|
||||
|
||||
-- Iteration 4 --
|
||||
1 1
|
||||
1 s 1
|
||||
1 0001 0000
|
||||
#0 1 $1 _0
|
||||
1 1 1
|
||||
int(81)
|
||||
1 1
|
||||
1 s 1
|
||||
1 0001 0000
|
||||
#0 1 $1 _0
|
||||
1 1 1
|
||||
int(84)
|
||||
|
@ -20,11 +20,11 @@ echo "*** Testing vsprintf() : octal formats and non-octal values ***\n";
|
||||
|
||||
// defining array of octal formats
|
||||
$formats =
|
||||
'%o %+o %-o
|
||||
%lo %Lo %4o %-4o
|
||||
%10.4o %-10.4o %.4o
|
||||
%\'#2o %\'2o %\'$2o %\'_2o
|
||||
%3$o %4$o %1$o %2$o';
|
||||
'%o %+o %-o
|
||||
%lo %Lo %4o %-4o
|
||||
%10.4o %-10.4o %.4o
|
||||
%\'#2o %\'2o %\'$2o %\'_2o
|
||||
%3$o %4$o %1$o %2$o';
|
||||
|
||||
// Arrays of non octal values for the format defined in $format.
|
||||
// Each sub array contains non octal values which correspond to each format in $format
|
||||
@ -82,37 +82,37 @@ echo "Done";
|
||||
*** Testing vsprintf() : octal formats and non-octal values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
string(148) "2 0 12
|
||||
361100 o 1777777777777777775456 2322
|
||||
string(151) "2 0 12
|
||||
361100 o 1777777777777777775456 2322
|
||||
|
||||
30071 14 1777777777777777777764 1777777777777777416700
|
||||
12 361100 2 0"
|
||||
30071 14 1777777777777777777764 1777777777777777416700
|
||||
12 361100 2 0"
|
||||
|
||||
-- Iteration 2 --
|
||||
string(200) "2 1777777777777777777776 2
|
||||
361100 o 1777777777777720715133 57062645
|
||||
string(203) "2 1777777777777777777776 2
|
||||
361100 o 1777777777777720715133 57062645
|
||||
|
||||
57060664 4475347 1777777777777721631371 1777777777777720717336
|
||||
2 361100 2 1777777777777777777776"
|
||||
57060664 4475347 1777777777777721631371 1777777777777720717336
|
||||
2 361100 2 1777777777777777777776"
|
||||
|
||||
-- Iteration 3 --
|
||||
string(98) "0 0 0
|
||||
173 o 1777777777777777777605 173
|
||||
string(101) "0 0 0
|
||||
173 o 1777777777777777777605 173
|
||||
|
||||
2322 0 $0 _0
|
||||
0 173 0 0"
|
||||
2322 0 $0 _0
|
||||
0 173 0 0"
|
||||
|
||||
-- Iteration 4 --
|
||||
string(74) "1 1 1
|
||||
1 o 1 1
|
||||
string(77) "1 1 1
|
||||
1 o 1 1
|
||||
|
||||
#1 1 $1 _1
|
||||
1 1 1 1"
|
||||
#1 1 $1 _1
|
||||
1 1 1 1"
|
||||
|
||||
-- Iteration 5 --
|
||||
string(74) "1 1 0
|
||||
1 o 0 1
|
||||
string(77) "1 1 0
|
||||
1 o 0 1
|
||||
|
||||
#0 1 $1 _0
|
||||
0 1 1 1"
|
||||
#0 1 $1 _0
|
||||
0 1 1 1"
|
||||
Done
|
||||
|
@ -20,11 +20,11 @@ echo "*** Testing vsprintf() : hexa formats and non-hexa values ***\n";
|
||||
|
||||
// defining array of different hexa formats
|
||||
$formats =
|
||||
'%x %+x %-x
|
||||
%lx %Lx %4x %-4x
|
||||
%10.4x %-10.4x %.4x
|
||||
%\'#2x %\'2x %\'$2x %\'_2x
|
||||
%3$x %4$x %1$x %2$x';
|
||||
'%x %+x %-x
|
||||
%lx %Lx %4x %-4x
|
||||
%10.4x %-10.4x %.4x
|
||||
%\'#2x %\'2x %\'$2x %\'_2x
|
||||
%3$x %4$x %1$x %2$x';
|
||||
|
||||
// Arrays of non hexa values for the format defined in $format.
|
||||
// Each sub array contains non hexa values which correspond to each format in $format
|
||||
@ -83,37 +83,37 @@ echo "Done";
|
||||
*** Testing vsprintf() : hexa formats and non-hexa values ***
|
||||
|
||||
-- Iteration 1 --
|
||||
string(124) "2 0 a
|
||||
1e240 x fffffffffffffb2e 4d2
|
||||
string(127) "2 0 a
|
||||
1e240 x fffffffffffffb2e 4d2
|
||||
|
||||
3039 c fffffffffffffff4 fffffffffffe1dc0
|
||||
a 1e240 2 0"
|
||||
3039 c fffffffffffffff4 fffffffffffe1dc0
|
||||
a 1e240 2 0"
|
||||
|
||||
-- Iteration 2 --
|
||||
string(163) "2 fffffffffffffffe 2
|
||||
1e240 x ffffffffff439a5b bc65a5
|
||||
string(166) "2 fffffffffffffffe 2
|
||||
1e240 x ffffffffff439a5b bc65a5
|
||||
|
||||
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
|
||||
2 1e240 2 fffffffffffffffe"
|
||||
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
|
||||
2 1e240 2 fffffffffffffffe"
|
||||
|
||||
-- Iteration 3 --
|
||||
string(89) "0 0 0
|
||||
7b x ffffffffffffff85 7b
|
||||
string(92) "0 0 0
|
||||
7b x ffffffffffffff85 7b
|
||||
|
||||
4d2 0 $0 _0
|
||||
0 7b 0 0"
|
||||
4d2 0 $0 _0
|
||||
0 7b 0 0"
|
||||
|
||||
-- Iteration 4 --
|
||||
string(74) "1 1 1
|
||||
1 x 1 1
|
||||
string(77) "1 1 1
|
||||
1 x 1 1
|
||||
|
||||
#1 1 $1 _1
|
||||
1 1 1 1"
|
||||
#1 1 $1 _1
|
||||
1 1 1 1"
|
||||
|
||||
-- Iteration 5 --
|
||||
string(74) "1 1 0
|
||||
1 x 0 1
|
||||
string(77) "1 1 0
|
||||
1 x 0 1
|
||||
|
||||
#0 1 $1 _0
|
||||
0 1 1 1"
|
||||
#0 1 $1 _0
|
||||
0 1 1 1"
|
||||
Done
|
||||
|
Loading…
Reference in New Issue
Block a user