diff options
Diffstat (limited to 'src/tests/global_strict/global_strict_issue432.phpt')
| -rw-r--r-- | src/tests/global_strict/global_strict_issue432.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/global_strict/global_strict_issue432.phpt b/src/tests/global_strict/global_strict_issue432.phpt new file mode 100644 index 0000000..008529e --- /dev/null +++ b/src/tests/global_strict/global_strict_issue432.phpt | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | --TEST-- | ||
| 2 | Global strict mode, for issue #432 | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) print "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/global_strict_disabled.ini | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | $filename = '/tmp/test.txt'; | ||
| 10 | file_put_contents($filename, '0'); | ||
| 11 | $var = file_get_contents($filename); | ||
| 12 | if ($var == "0") { | ||
| 13 | print("WIN"); | ||
| 14 | } | ||
| 15 | if ($var == 0) { | ||
| 16 | print("WIN"); | ||
| 17 | } | ||
| 18 | unlink($filename); | ||
| 19 | ?> | ||
| 20 | --EXPECT-- | ||
| 21 | WINWIN | ||
