diff options
Diffstat (limited to 'tests/lang/bug38579.phpt')
| -rwxr-xr-x | tests/lang/bug38579.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lang/bug38579.phpt b/tests/lang/bug38579.phpt new file mode 100755 index 000000000..fbf98a962 --- /dev/null +++ b/tests/lang/bug38579.phpt @@ -0,0 +1,16 @@ +--TEST--
+Bug #38579 (include_once() may include the same file twice)
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') {
+ die('skip only for Windows');
+}
+?>
+--FILE--
+<?php
+$file = dirname(__FILE__)."/bug38579.inc";
+include_once(strtolower($file));
+include_once(strtoupper($file));
+?>
+--EXPECT--
+ok
|
