Skip to content

Commit 5a9691b

Browse files
committed
Revert
39587c4 8b7f594 Because of 24fdffd
1 parent cba560e commit 5a9691b

File tree

2 files changed

+17
-51
lines changed

2 files changed

+17
-51
lines changed

ext/standard/tests/math/rand_variation1.phpt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,13 @@ int(%i)
9797
int(%i)
9898

9999
-- Iteration 3 --
100-
101-
Warning: rand(): max(100) is smaller than min(12345) in %s on line %d
102-
bool(false)
100+
int(%i)
103101

104102
-- Iteration 4 --
105103
int(%i)
106104

107105
-- Iteration 5 --
108-
109-
Warning: rand(): max(100) is smaller than min(2147483647) in %s on line %d
110-
bool(false)
106+
int(%i)
111107

112108
-- Iteration 6 --
113109
int(%i)

ext/standard/tests/math/rand_variation2.phpt

Lines changed: 15 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -91,80 +91,54 @@ fclose($fp);
9191
*** Testing rand) : usage variations ***
9292

9393
-- Iteration 1 --
94-
95-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
96-
bool(false)
94+
int(%i)
9795

9896
-- Iteration 2 --
99-
100-
Warning: rand(): max(1) is smaller than min(100) in %s on line %d
101-
bool(false)
97+
int(%i)
10298

10399
-- Iteration 3 --
104100
int(%i)
105101

106102
-- Iteration 4 --
107-
108-
Warning: rand(): max(-2345) is smaller than min(100) in %s on line %d
109-
bool(false)
103+
int(%i)
110104

111105
-- Iteration 5 --
112106
int(%i)
113107

114108
-- Iteration 6 --
115-
116-
Warning: rand(): max(10) is smaller than min(100) in %s on line %d
117-
bool(false)
109+
int(%i)
118110

119111
-- Iteration 7 --
120-
121-
Warning: rand(): max(-10) is smaller than min(100) in %s on line %d
122-
bool(false)
112+
int(%i)
123113

124114
-- Iteration 8 --
125115

126116
Warning: rand() expects parameter 2 to be integer, float given in %s on line %d
127117
NULL
128118

129119
-- Iteration 9 --
130-
131-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
132-
bool(false)
120+
int(%i)
133121

134122
-- Iteration 10 --
135-
136-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
137-
bool(false)
123+
int(%i)
138124

139125
-- Iteration 11 --
140-
141-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
142-
bool(false)
126+
int(%i)
143127

144128
-- Iteration 12 --
145-
146-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
147-
bool(false)
129+
int(%i)
148130

149131
-- Iteration 13 --
150-
151-
Warning: rand(): max(1) is smaller than min(100) in %s on line %d
152-
bool(false)
132+
int(%i)
153133

154134
-- Iteration 14 --
155-
156-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
157-
bool(false)
135+
int(%i)
158136

159137
-- Iteration 15 --
160-
161-
Warning: rand(): max(1) is smaller than min(100) in %s on line %d
162-
bool(false)
138+
int(%i)
163139

164140
-- Iteration 16 --
165-
166-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
167-
bool(false)
141+
int(%i)
168142

169143
-- Iteration 17 --
170144

@@ -202,14 +176,10 @@ Warning: rand() expects parameter 2 to be integer, object given in %s on line %d
202176
NULL
203177

204178
-- Iteration 24 --
205-
206-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
207-
bool(false)
179+
int(%i)
208180

209181
-- Iteration 25 --
210-
211-
Warning: rand(): max(0) is smaller than min(100) in %s on line %d
212-
bool(false)
182+
int(%i)
213183

214184
-- Iteration 26 --
215185

0 commit comments

Comments
 (0)