diff options
Diffstat (limited to 'src/tests/disabled_option.phpt')
| -rw-r--r-- | src/tests/disabled_option.phpt | 14 |
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 |
| 9 | srand(0); | 9 | srand(0); |
| 10 | echo rand(0,100)."\n"; | 10 | $a = rand(0,100)."\n"; |
| 11 | srand(0); | 11 | srand(0); |
| 12 | echo rand(0,100)."\n"; | 12 | $b = rand(0,100)."\n"; |
| 13 | srand(0); | ||
| 14 | $c = rand(0,100)."\n"; | ||
| 15 | if ($a == $b && $a == $c) { | ||
| 16 | echo "win"; | ||
| 17 | } else { | ||
| 18 | echo "lose"; | ||
| 19 | } | ||
| 13 | ?> | 20 | ?> |
| 14 | --EXPECT-- | 21 | --EXPECT-- |
| 15 | 84 | 22 | win |
| 16 | 84 | ||
