summaryrefslogtreecommitdiff
path: root/src/tests/global_strict
diff options
context:
space:
mode:
authorjvoisin2022-08-21 15:58:09 +0200
committerjvoisin2022-08-21 19:40:17 +0200
commite6219a095de78ce03be4a36360020a6f4fe94105 (patch)
tree3b5701c88730e914e37ea9d2d966fd2262a63419 /src/tests/global_strict
parentb921322ce5faa5c49a14d71bb37f855b0634de0e (diff)
Fix sloppy comparison
Diffstat (limited to 'src/tests/global_strict')
-rw-r--r--src/tests/global_strict/global_strict_issue432.phpt21
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--
2Global strict mode, for issue #432
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/global_strict_disabled.ini
7--FILE--
8<?php
9$filename = '/tmp/test.txt';
10file_put_contents($filename, '0');
11$var = file_get_contents($filename);
12if ($var == "0") {
13 print("WIN");
14}
15if ($var == 0) {
16 print("WIN");
17}
18unlink($filename);
19?>
20--EXPECT--
21WINWIN