summaryrefslogtreecommitdiff
path: root/src/tests/disabled_option.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disabled_option.phpt')
-rw-r--r--src/tests/disabled_option.phpt14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tests/disabled_option.phpt b/src/tests/disabled_option.phpt
index 8bc7e39..70e1382 100644
--- a/src/tests/disabled_option.phpt
+++ b/src/tests/disabled_option.phpt
@@ -7,10 +7,16 @@ sp.configuration_file={PWD}/config/config_rand_harden_disabled.ini
7--FILE-- 7--FILE--
8<?php 8<?php
9srand(0); 9srand(0);
10echo rand(0,100)."\n"; 10$a = rand(0,100)."\n";
11srand(0); 11srand(0);
12echo rand(0,100)."\n"; 12$b = rand(0,100)."\n";
13srand(0);
14$c = rand(0,100)."\n";
15if ($a == $b && $a == $c) {
16 echo "win";
17} else {
18 echo "lose";
19}
13?> 20?>
14--EXPECT-- 21--EXPECT--
1584 22win
1684