You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/standard/tests/math/rand_variation1.phpt
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -97,13 +97,17 @@ int(%i)
97
97
int(%i)
98
98
99
99
-- Iteration 3 --
100
-
int(%i)
100
+
101
+
Warning: rand(): max(100) is smaller than min(12345) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation1.php on line 79
102
+
bool(false)
101
103
102
104
-- Iteration 4 --
103
105
int(%i)
104
106
105
107
-- Iteration 5 --
106
-
int(%i)
108
+
109
+
Warning: rand(): max(100) is smaller than min(2147483647) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation1.php on line 79
Copy file name to clipboardExpand all lines: ext/standard/tests/math/rand_variation2.phpt
+54-24Lines changed: 54 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -91,98 +91,128 @@ fclose($fp);
91
91
*** Testing rand) : usage variations ***
92
92
93
93
-- Iteration 1 --
94
-
int(%i)
94
+
95
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
96
+
bool(false)
95
97
96
98
-- Iteration 2 --
97
-
int(%i)
99
+
100
+
Warning: rand(): max(1) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
101
+
bool(false)
98
102
99
103
-- Iteration 3 --
100
104
int(%i)
101
105
102
106
-- Iteration 4 --
103
-
int(%i)
107
+
108
+
Warning: rand(): max(-2345) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
109
+
bool(false)
104
110
105
111
-- Iteration 5 --
106
112
int(%i)
107
113
108
114
-- Iteration 6 --
109
-
int(%i)
115
+
116
+
Warning: rand(): max(10) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
117
+
bool(false)
110
118
111
119
-- Iteration 7 --
112
-
int(%i)
120
+
121
+
Warning: rand(): max(-10) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
122
+
bool(false)
113
123
114
124
-- Iteration 8 --
115
125
116
-
Warning: rand() expects parameter 2 to be integer, float given in %s on line %d
126
+
Warning: rand() expects parameter 2 to be integer, float given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
117
127
NULL
118
128
119
129
-- Iteration 9 --
120
-
int(%i)
130
+
131
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
132
+
bool(false)
121
133
122
134
-- Iteration 10 --
123
-
int(%i)
135
+
136
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
137
+
bool(false)
124
138
125
139
-- Iteration 11 --
126
-
int(%i)
140
+
141
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
142
+
bool(false)
127
143
128
144
-- Iteration 12 --
129
-
int(%i)
145
+
146
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
147
+
bool(false)
130
148
131
149
-- Iteration 13 --
132
-
int(%i)
150
+
151
+
Warning: rand(): max(1) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
152
+
bool(false)
133
153
134
154
-- Iteration 14 --
135
-
int(%i)
155
+
156
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
157
+
bool(false)
136
158
137
159
-- Iteration 15 --
138
-
int(%i)
160
+
161
+
Warning: rand(): max(1) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
162
+
bool(false)
139
163
140
164
-- Iteration 16 --
141
-
int(%i)
165
+
166
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
167
+
bool(false)
142
168
143
169
-- Iteration 17 --
144
170
145
-
Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
171
+
Warning: rand() expects parameter 2 to be integer, string given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
146
172
NULL
147
173
148
174
-- Iteration 18 --
149
175
150
-
Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
176
+
Warning: rand() expects parameter 2 to be integer, string given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
151
177
NULL
152
178
153
179
-- Iteration 19 --
154
180
155
-
Warning: rand() expects parameter 2 to be integer, array given in %s on line %d
181
+
Warning: rand() expects parameter 2 to be integer, array given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
156
182
NULL
157
183
158
184
-- Iteration 20 --
159
185
160
-
Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
186
+
Warning: rand() expects parameter 2 to be integer, string given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
161
187
NULL
162
188
163
189
-- Iteration 21 --
164
190
165
-
Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
191
+
Warning: rand() expects parameter 2 to be integer, string given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
166
192
NULL
167
193
168
194
-- Iteration 22 --
169
195
170
-
Warning: rand() expects parameter 2 to be integer, string given in %s on line %d
196
+
Warning: rand() expects parameter 2 to be integer, string given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
171
197
NULL
172
198
173
199
-- Iteration 23 --
174
200
175
-
Warning: rand() expects parameter 2 to be integer, object given in %s on line %d
201
+
Warning: rand() expects parameter 2 to be integer, object given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
176
202
NULL
177
203
178
204
-- Iteration 24 --
179
-
int(%i)
205
+
206
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
207
+
bool(false)
180
208
181
209
-- Iteration 25 --
182
-
int(%i)
210
+
211
+
Warning: rand(): max(0) is smaller than min(100) in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
212
+
bool(false)
183
213
184
214
-- Iteration 26 --
185
215
186
-
Warning: rand() expects parameter 2 to be integer, resource given in %s on line %d
216
+
Warning: rand() expects parameter 2 to be integer, resource given in /builddir/build/BUILD/php-7.1.0beta2/ext/standard/tests/math/rand_variation2.php on line 79
0 commit comments