File tree Expand file tree Collapse file tree 11 files changed +130
-130
lines changed
ext/standard/tests/strings Expand file tree Collapse file tree 11 files changed +130
-130
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vfprintf() : octal formats and non-octal values ***\n";
2020
2121// defining array of octal formats
2222$ formats =
23- '%o %+o %-o
23+ '%o %+o %-o
2424 %lo %Lo %4o %-4o
25- %10.4o %-10.4o %.4o
25+ %10.4o %-10.4o %.4o
2626 % \'#2o % \'2o % \'$2o % \'_2o
2727 %3$o %4$o %1$o %2$o ' ;
2828
@@ -92,32 +92,32 @@ unlink($data_file);
9292*** Testing vfprintf() : octal formats and non-octal values ***
9393
9494-- Iteration 1 --
95- 2 0 12
95+ 2 0 12
9696 361100 o 37777775456 2322
97-
97+
9898 30071 14 37777777764 37777416700
9999 12 361100 2 0
100100-- Iteration 2 --
101- 2 37777777776 2
101+ 2 37777777776 2
102102 361100 o 37720715133 57062645
103-
103+
104104 57060664 4475347 37721631371 37720717336
105105 2 361100 2 37777777776
106106-- Iteration 3 --
107- 0 0 0
107+ 0 0 0
108108 173 o 37777777605 173
109-
109+
110110 2322 0 $0 _0
111111 0 173 0 0
112112-- Iteration 4 --
113- 1 1 1
113+ 1 1 1
114114 1 o 1 1
115-
115+
116116 #1 1 $1 _1
117117 1 1 1 1
118118-- Iteration 5 --
119- 1 1 0
119+ 1 1 0
120120 1 o 0 1
121-
121+
122122 #0 1 $1 _0
123123 0 1 1 1
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vfprintf() : hexa formats and non-hexa values ***\n";
2020
2121// defining array of different hexa formats
2222$ formats =
23- '%x %+x %-x
23+ '%x %+x %-x
2424 %lx %Lx %4x %-4x
25- %10.4x %-10.4x %.4x
25+ %10.4x %-10.4x %.4x
2626 % \'#2x % \'2x % \'$2x % \'_2x
2727 %3$x %4$x %1$x %2$x ' ;
2828
@@ -92,32 +92,32 @@ unlink($data_file);
9292*** Testing vfprintf() : hexa formats and non-hexa values ***
9393
9494-- Iteration 1 --
95- 2 0 a
95+ 2 0 a
9696 1e240 x fffffb2e 4d2
97-
97+
9898 3039 c fffffff4 fffe1dc0
9999 a 1e240 2 0
100100-- Iteration 2 --
101- 2 fffffffe 2
101+ 2 fffffffe 2
102102 1e240 x ff439a5b bc65a5
103-
103+
104104 bc61b4 127ae7 ff4732f9 ff439ede
105105 2 1e240 2 fffffffe
106106-- Iteration 3 --
107- 0 0 0
107+ 0 0 0
108108 7b x ffffff85 7b
109-
109+
110110 4d2 0 $0 _0
111111 0 7b 0 0
112112-- Iteration 4 --
113- 1 1 1
113+ 1 1 1
114114 1 x 1 1
115-
115+
116116 #1 1 $1 _1
117117 1 1 1 1
118118-- Iteration 5 --
119- 1 1 0
119+ 1 1 0
120120 1 x 0 1
121-
121+
122122 #0 1 $1 _0
123123 0 1 1 1
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vfprintf() : unsigned formats and signed & other types of valu
2020
2121// defining array of unsigned formats
2222$ formats =
23- '%u %+u %-u
23+ '%u %+u %-u
2424 %lu %Lu %4u %-4u
25- %10.4u %-10.4u %.4u
25+ %10.4u %-10.4u %.4u
2626 % \'#2u % \'2u % \'$2u % \'_2u
2727 %3$u %4$u %1$u %2$u ' ;
2828
@@ -85,26 +85,26 @@ unlink($data_file);
8585*** Testing vfprintf() : unsigned formats and signed & other types of values ***
8686
8787-- Iteration 1 --
88- 2 0 10
88+ 2 0 10
8989 123456 u 1234 2820130816
90- 2840207360 1177509888 12345
90+ 2840207360 1177509888 12345
9191 12 4294967284 4294843840 _3
9292 10 123456 2 0
9393-- Iteration 2 --
94- 0 0 0
94+ 0 0 0
9595 123 u 4294967173 123
96- 0 0 0
96+ 0 0 0
9797 1234 0 $0 _0
9898 0 123 0 0
9999-- Iteration 3 --
100- 1 1 1
100+ 1 1 1
101101 1 u 1 1
102- 1 1 1
102+ 1 1 1
103103 #1 1 $1 _1
104104 1 1 1 1
105105-- Iteration 4 --
106- 1 1 0
106+ 1 1 0
107107 1 u 0 1
108- 1 1 0
108+ 1 1 0
109109 #0 1 $1 _0
110110 0 1 1 1
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vprintf() : octal formats and non-octal values ***\n";
2020
2121// defining array of octal formats
2222$ formats =
23- '%o %+o %-o
23+ '%o %+o %-o
2424 %lo %Lo %4o %-4o
25- %10.4o %-10.4o %.4o
25+ %10.4o %-10.4o %.4o
2626 % \'#2o % \'2o % \'$2o % \'_2o
2727 %3$o %4$o %1$o %2$o ' ;
2828
@@ -83,41 +83,41 @@ foreach($args_array as $args) {
8383*** Testing vprintf() : octal formats and non-octal values ***
8484
8585-- Iteration 1 --
86- 2 0 12
86+ 2 0 12
8787 361100 o 37777775456 2322
88-
88+
8989 30071 14 37777777764 37777416700
9090 12 361100 2 0
91- int(116 )
91+ int(114 )
9292
9393-- Iteration 2 --
94- 2 37777777776 2
94+ 2 37777777776 2
9595 361100 o 37720715133 57062645
96-
96+
9797 57060664 4475347 37721631371 37720717336
9898 2 361100 2 37777777776
99- int(146 )
99+ int(144 )
100100
101101-- Iteration 3 --
102- 0 0 0
102+ 0 0 0
103103 173 o 37777777605 173
104-
104+
105105 2322 0 $0 _0
106106 0 173 0 0
107- int(88 )
107+ int(86 )
108108
109109-- Iteration 4 --
110- 1 1 1
110+ 1 1 1
111111 1 o 1 1
112-
112+
113113 #1 1 $1 _1
114114 1 1 1 1
115- int(75 )
115+ int(73 )
116116
117117-- Iteration 5 --
118- 1 1 0
118+ 1 1 0
119119 1 o 0 1
120-
120+
121121 #0 1 $1 _0
122122 0 1 1 1
123- int(75 )
123+ int(73 )
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vprintf() : hexa formats and non-hexa values ***\n";
2020
2121// defining array of different hexa formats
2222$ formats =
23- '%x %+x %-x
23+ '%x %+x %-x
2424 %lx %Lx %4x %-4x
25- %10.4x %-10.4x %.4x
25+ %10.4x %-10.4x %.4x
2626 % \'#2x % \'2x % \'$2x % \'_2x
2727 %3$x %4$x %1$x %2$x ' ;
2828
@@ -84,41 +84,41 @@ foreach($args_array as $args) {
8484*** Testing vprintf() : hexa formats and non-hexa values ***
8585
8686-- Iteration 1 --
87- 2 0 a
87+ 2 0 a
8888 1e240 x fffffb2e 4d2
89-
89+
9090 3039 c fffffff4 fffe1dc0
9191 a 1e240 2 0
92- int(101 )
92+ int(99 )
9393
9494-- Iteration 2 --
95- 2 fffffffe 2
95+ 2 fffffffe 2
9696 1e240 x ff439a5b bc65a5
97-
97+
9898 bc61b4 127ae7 ff4732f9 ff439ede
9999 2 1e240 2 fffffffe
100- int(124 )
100+ int(122 )
101101
102102-- Iteration 3 --
103- 0 0 0
103+ 0 0 0
104104 7b x ffffff85 7b
105-
105+
106106 4d2 0 $0 _0
107107 0 7b 0 0
108- int(82 )
108+ int(80 )
109109
110110-- Iteration 4 --
111- 1 1 1
111+ 1 1 1
112112 1 x 1 1
113-
113+
114114 #1 1 $1 _1
115115 1 1 1 1
116- int(75 )
116+ int(73 )
117117
118118-- Iteration 5 --
119- 1 1 0
119+ 1 1 0
120120 1 x 0 1
121-
121+
122122 #0 1 $1 _0
123123 0 1 1 1
124- int(75 )
124+ int(73 )
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ echo "*** Testing vprintf() : unsigned formats and signed & other types of value
2020
2121// defining array of unsigned formats
2222$ formats =
23- '%u %+u %-u
23+ '%u %+u %-u
2424 %lu %Lu %4u %-4u
25- %10.4u %-10.4u %.4u
25+ %10.4u %-10.4u %.4u
2626 % \'#2u % \'2u % \'$2u % \'_2u
2727 %3$u %4$u %1$u %2$u ' ;
2828
@@ -75,33 +75,33 @@ foreach($args_array as $args) {
7575*** Testing vprintf() : unsigned formats and signed & other types of values ***
7676
7777-- Iteration 1 --
78- 2 0 10
78+ 2 0 10
7979 123456 u 1234 2820130816
80- 2840207360 1177509888 12345
80+ 2840207360 1177509888 12345
8181 12 4294967284 4294843840 _3
8282 10 123456 2 0
83- int(115 )
83+ int(113 )
8484
8585-- Iteration 2 --
86- 0 0 0
86+ 0 0 0
8787 123 u 4294967173 123
88- 0 0 0
88+ 0 0 0
8989 1234 0 $0 _0
9090 0 123 0 0
91- int(88 )
91+ int(86 )
9292
9393-- Iteration 3 --
94- 1 1 1
94+ 1 1 1
9595 1 u 1 1
96- 1 1 1
96+ 1 1 1
9797 #1 1 $1 _1
9898 1 1 1 1
99- int(76 )
99+ int(74 )
100100
101101-- Iteration 4 --
102- 1 1 0
102+ 1 1 0
103103 1 u 0 1
104- 1 1 0
104+ 1 1 0
105105 #0 1 $1 _0
106106 0 1 1 1
107- int(76 )
107+ int(74 )
You can’t perform that action at this time.
0 commit comments