diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-09-20 07:36:21 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-09-20 07:36:21 +0000 |
commit | 2197f8b9708dba45ccbd951066e8ff40c878c6d8 (patch) | |
tree | e245eb2cb1f6e72b40b6549a814514f1f809a692 /tests/lang | |
parent | 6781debeb8702d6cb16dca18d41d583b55418f79 (diff) | |
download | php-git-2197f8b9708dba45ccbd951066e8ff40c878c6d8.tar.gz |
Fixed bug #38579 (include_once() may include the same file twice)
Diffstat (limited to 'tests/lang')
-rwxr-xr-x | tests/lang/bug38579.inc | 3 | ||||
-rwxr-xr-x | tests/lang/bug38579.phpt | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/lang/bug38579.inc b/tests/lang/bug38579.inc new file mode 100755 index 0000000000..8ecc55824e --- /dev/null +++ b/tests/lang/bug38579.inc @@ -0,0 +1,3 @@ +<?php +echo "ok\n"; +?> diff --git a/tests/lang/bug38579.phpt b/tests/lang/bug38579.phpt new file mode 100755 index 0000000000..445296c222 --- /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 |