File tree 11 files changed +130
-130
lines changed
ext/standard/tests/strings 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";
20
20
21
21
// defining array of octal formats
22
22
$ formats =
23
- '%o %+o %-o
23
+ '%o %+o %-o
24
24
%lo %Lo %4o %-4o
25
- %10.4o %-10.4o %.4o
25
+ %10.4o %-10.4o %.4o
26
26
% \'#2o % \'2o % \'$2o % \'_2o
27
27
%3$o %4$o %1$o %2$o ' ;
28
28
@@ -92,32 +92,32 @@ unlink($data_file);
92
92
*** Testing vfprintf() : octal formats and non-octal values ***
93
93
94
94
-- Iteration 1 --
95
- 2 0 12
95
+ 2 0 12
96
96
361100 o 37777775456 2322
97
-
97
+
98
98
30071 14 37777777764 37777416700
99
99
12 361100 2 0
100
100
-- Iteration 2 --
101
- 2 37777777776 2
101
+ 2 37777777776 2
102
102
361100 o 37720715133 57062645
103
-
103
+
104
104
57060664 4475347 37721631371 37720717336
105
105
2 361100 2 37777777776
106
106
-- Iteration 3 --
107
- 0 0 0
107
+ 0 0 0
108
108
173 o 37777777605 173
109
-
109
+
110
110
2322 0 $0 _0
111
111
0 173 0 0
112
112
-- Iteration 4 --
113
- 1 1 1
113
+ 1 1 1
114
114
1 o 1 1
115
-
115
+
116
116
#1 1 $1 _1
117
117
1 1 1 1
118
118
-- Iteration 5 --
119
- 1 1 0
119
+ 1 1 0
120
120
1 o 0 1
121
-
121
+
122
122
#0 1 $1 _0
123
123
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";
20
20
21
21
// defining array of different hexa formats
22
22
$ formats =
23
- '%x %+x %-x
23
+ '%x %+x %-x
24
24
%lx %Lx %4x %-4x
25
- %10.4x %-10.4x %.4x
25
+ %10.4x %-10.4x %.4x
26
26
% \'#2x % \'2x % \'$2x % \'_2x
27
27
%3$x %4$x %1$x %2$x ' ;
28
28
@@ -92,32 +92,32 @@ unlink($data_file);
92
92
*** Testing vfprintf() : hexa formats and non-hexa values ***
93
93
94
94
-- Iteration 1 --
95
- 2 0 a
95
+ 2 0 a
96
96
1e240 x fffffb2e 4d2
97
-
97
+
98
98
3039 c fffffff4 fffe1dc0
99
99
a 1e240 2 0
100
100
-- Iteration 2 --
101
- 2 fffffffe 2
101
+ 2 fffffffe 2
102
102
1e240 x ff439a5b bc65a5
103
-
103
+
104
104
bc61b4 127ae7 ff4732f9 ff439ede
105
105
2 1e240 2 fffffffe
106
106
-- Iteration 3 --
107
- 0 0 0
107
+ 0 0 0
108
108
7b x ffffff85 7b
109
-
109
+
110
110
4d2 0 $0 _0
111
111
0 7b 0 0
112
112
-- Iteration 4 --
113
- 1 1 1
113
+ 1 1 1
114
114
1 x 1 1
115
-
115
+
116
116
#1 1 $1 _1
117
117
1 1 1 1
118
118
-- Iteration 5 --
119
- 1 1 0
119
+ 1 1 0
120
120
1 x 0 1
121
-
121
+
122
122
#0 1 $1 _0
123
123
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
20
20
21
21
// defining array of unsigned formats
22
22
$ formats =
23
- '%u %+u %-u
23
+ '%u %+u %-u
24
24
%lu %Lu %4u %-4u
25
- %10.4u %-10.4u %.4u
25
+ %10.4u %-10.4u %.4u
26
26
% \'#2u % \'2u % \'$2u % \'_2u
27
27
%3$u %4$u %1$u %2$u ' ;
28
28
@@ -85,26 +85,26 @@ unlink($data_file);
85
85
*** Testing vfprintf() : unsigned formats and signed & other types of values ***
86
86
87
87
-- Iteration 1 --
88
- 2 0 10
88
+ 2 0 10
89
89
123456 u 1234 2820130816
90
- 2840207360 1177509888 12345
90
+ 2840207360 1177509888 12345
91
91
12 4294967284 4294843840 _3
92
92
10 123456 2 0
93
93
-- Iteration 2 --
94
- 0 0 0
94
+ 0 0 0
95
95
123 u 4294967173 123
96
- 0 0 0
96
+ 0 0 0
97
97
1234 0 $0 _0
98
98
0 123 0 0
99
99
-- Iteration 3 --
100
- 1 1 1
100
+ 1 1 1
101
101
1 u 1 1
102
- 1 1 1
102
+ 1 1 1
103
103
#1 1 $1 _1
104
104
1 1 1 1
105
105
-- Iteration 4 --
106
- 1 1 0
106
+ 1 1 0
107
107
1 u 0 1
108
- 1 1 0
108
+ 1 1 0
109
109
#0 1 $1 _0
110
110
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";
20
20
21
21
// defining array of octal formats
22
22
$ formats =
23
- '%o %+o %-o
23
+ '%o %+o %-o
24
24
%lo %Lo %4o %-4o
25
- %10.4o %-10.4o %.4o
25
+ %10.4o %-10.4o %.4o
26
26
% \'#2o % \'2o % \'$2o % \'_2o
27
27
%3$o %4$o %1$o %2$o ' ;
28
28
@@ -83,41 +83,41 @@ foreach($args_array as $args) {
83
83
*** Testing vprintf() : octal formats and non-octal values ***
84
84
85
85
-- Iteration 1 --
86
- 2 0 12
86
+ 2 0 12
87
87
361100 o 37777775456 2322
88
-
88
+
89
89
30071 14 37777777764 37777416700
90
90
12 361100 2 0
91
- int(116 )
91
+ int(114 )
92
92
93
93
-- Iteration 2 --
94
- 2 37777777776 2
94
+ 2 37777777776 2
95
95
361100 o 37720715133 57062645
96
-
96
+
97
97
57060664 4475347 37721631371 37720717336
98
98
2 361100 2 37777777776
99
- int(146 )
99
+ int(144 )
100
100
101
101
-- Iteration 3 --
102
- 0 0 0
102
+ 0 0 0
103
103
173 o 37777777605 173
104
-
104
+
105
105
2322 0 $0 _0
106
106
0 173 0 0
107
- int(88 )
107
+ int(86 )
108
108
109
109
-- Iteration 4 --
110
- 1 1 1
110
+ 1 1 1
111
111
1 o 1 1
112
-
112
+
113
113
#1 1 $1 _1
114
114
1 1 1 1
115
- int(75 )
115
+ int(73 )
116
116
117
117
-- Iteration 5 --
118
- 1 1 0
118
+ 1 1 0
119
119
1 o 0 1
120
-
120
+
121
121
#0 1 $1 _0
122
122
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";
20
20
21
21
// defining array of different hexa formats
22
22
$ formats =
23
- '%x %+x %-x
23
+ '%x %+x %-x
24
24
%lx %Lx %4x %-4x
25
- %10.4x %-10.4x %.4x
25
+ %10.4x %-10.4x %.4x
26
26
% \'#2x % \'2x % \'$2x % \'_2x
27
27
%3$x %4$x %1$x %2$x ' ;
28
28
@@ -84,41 +84,41 @@ foreach($args_array as $args) {
84
84
*** Testing vprintf() : hexa formats and non-hexa values ***
85
85
86
86
-- Iteration 1 --
87
- 2 0 a
87
+ 2 0 a
88
88
1e240 x fffffb2e 4d2
89
-
89
+
90
90
3039 c fffffff4 fffe1dc0
91
91
a 1e240 2 0
92
- int(101 )
92
+ int(99 )
93
93
94
94
-- Iteration 2 --
95
- 2 fffffffe 2
95
+ 2 fffffffe 2
96
96
1e240 x ff439a5b bc65a5
97
-
97
+
98
98
bc61b4 127ae7 ff4732f9 ff439ede
99
99
2 1e240 2 fffffffe
100
- int(124 )
100
+ int(122 )
101
101
102
102
-- Iteration 3 --
103
- 0 0 0
103
+ 0 0 0
104
104
7b x ffffff85 7b
105
-
105
+
106
106
4d2 0 $0 _0
107
107
0 7b 0 0
108
- int(82 )
108
+ int(80 )
109
109
110
110
-- Iteration 4 --
111
- 1 1 1
111
+ 1 1 1
112
112
1 x 1 1
113
-
113
+
114
114
#1 1 $1 _1
115
115
1 1 1 1
116
- int(75 )
116
+ int(73 )
117
117
118
118
-- Iteration 5 --
119
- 1 1 0
119
+ 1 1 0
120
120
1 x 0 1
121
-
121
+
122
122
#0 1 $1 _0
123
123
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
20
20
21
21
// defining array of unsigned formats
22
22
$ formats =
23
- '%u %+u %-u
23
+ '%u %+u %-u
24
24
%lu %Lu %4u %-4u
25
- %10.4u %-10.4u %.4u
25
+ %10.4u %-10.4u %.4u
26
26
% \'#2u % \'2u % \'$2u % \'_2u
27
27
%3$u %4$u %1$u %2$u ' ;
28
28
@@ -75,33 +75,33 @@ foreach($args_array as $args) {
75
75
*** Testing vprintf() : unsigned formats and signed & other types of values ***
76
76
77
77
-- Iteration 1 --
78
- 2 0 10
78
+ 2 0 10
79
79
123456 u 1234 2820130816
80
- 2840207360 1177509888 12345
80
+ 2840207360 1177509888 12345
81
81
12 4294967284 4294843840 _3
82
82
10 123456 2 0
83
- int(115 )
83
+ int(113 )
84
84
85
85
-- Iteration 2 --
86
- 0 0 0
86
+ 0 0 0
87
87
123 u 4294967173 123
88
- 0 0 0
88
+ 0 0 0
89
89
1234 0 $0 _0
90
90
0 123 0 0
91
- int(88 )
91
+ int(86 )
92
92
93
93
-- Iteration 3 --
94
- 1 1 1
94
+ 1 1 1
95
95
1 u 1 1
96
- 1 1 1
96
+ 1 1 1
97
97
#1 1 $1 _1
98
98
1 1 1 1
99
- int(76 )
99
+ int(74 )
100
100
101
101
-- Iteration 4 --
102
- 1 1 0
102
+ 1 1 0
103
103
1 u 0 1
104
- 1 1 0
104
+ 1 1 0
105
105
#0 1 $1 _0
106
106
0 1 1 1
107
- int(76 )
107
+ int(74 )
You can’t perform that action at this time.
0 commit comments