From 5a9691bf08ab412d5b1640de340689f472aa0cb9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Sep 2016 15:21:45 +0200 Subject: [PATCH] Revert 39587c4817522f40a639f32f77f49595fab066f9 8b7f594a2bcd67154274c5533274fe4d83a676fd Because of 24fdffdacbfeaa20e8f08d44c7c61e3fb7ba9ac5 --- ext/standard/tests/math/rand_variation1.phpt | 8 +-- ext/standard/tests/math/rand_variation2.phpt | 60 +++++--------------- 2 files changed, 17 insertions(+), 51 deletions(-) diff --git a/ext/standard/tests/math/rand_variation1.phpt b/ext/standard/tests/math/rand_variation1.phpt index 7019a99d57..f14ada87f5 100644 --- a/ext/standard/tests/math/rand_variation1.phpt +++ b/ext/standard/tests/math/rand_variation1.phpt @@ -97,17 +97,13 @@ int(%i) int(%i) -- Iteration 3 -- - -Warning: rand(): max(100) is smaller than min(12345) in %s on line %d -bool(false) +int(%i) -- Iteration 4 -- int(%i) -- Iteration 5 -- - -Warning: rand(): max(100) is smaller than min(2147483647) in %s on line %d -bool(false) +int(%i) -- Iteration 6 -- int(%i) diff --git a/ext/standard/tests/math/rand_variation2.phpt b/ext/standard/tests/math/rand_variation2.phpt index 04ee205191..824b47b0cb 100644 --- a/ext/standard/tests/math/rand_variation2.phpt +++ b/ext/standard/tests/math/rand_variation2.phpt @@ -91,35 +91,25 @@ fclose($fp); *** Testing rand) : usage variations *** -- Iteration 1 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 2 -- - -Warning: rand(): max(1) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 3 -- int(%i) -- Iteration 4 -- - -Warning: rand(): max(-2345) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 5 -- int(%i) -- Iteration 6 -- - -Warning: rand(): max(10) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 7 -- - -Warning: rand(): max(-10) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 8 -- @@ -127,44 +117,28 @@ Warning: rand() expects parameter 2 to be integer, float given in %s on line %d NULL -- Iteration 9 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 10 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 11 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 12 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 13 -- - -Warning: rand(): max(1) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 14 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 15 -- - -Warning: rand(): max(1) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 16 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 17 -- @@ -202,14 +176,10 @@ Warning: rand() expects parameter 2 to be integer, object given in %s on line %d NULL -- Iteration 24 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 25 -- - -Warning: rand(): max(0) is smaller than min(100) in %s on line %d -bool(false) +int(%i) -- Iteration 26 -- -- 2.40.0