summaryrefslogtreecommitdiff
path: root/src/tests/global_strict/global_strict_issue432.phpt
blob: 008529e395312a9bae7d70bc0f88ccf7182fe119 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--TEST--
Global strict mode, for issue #432
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/global_strict_disabled.ini
--FILE--
<?php 
$filename = '/tmp/test.txt';
file_put_contents($filename, '0');
$var = file_get_contents($filename);
if ($var == "0") {
	print("WIN");
}
if ($var == 0) {
	print("WIN");
}
unlink($filename);
?>
--EXPECT--
WINWIN