diff options
author | Alessandro Chitolina <alekitto@gmail.com> | 2019-03-19 17:34:34 +0100 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-03-23 09:47:49 +0100 |
commit | b8b880932e95ff1e575a04a6988bc0cf00b89842 (patch) | |
tree | 28c4ad470c9dcd8960080b27cbd78090f3191dec /sapi/phpdbg/tests | |
parent | 2e9dccef78d169be9a4a37c813e0b5d624bd5ac7 (diff) | |
download | php-git-b8b880932e95ff1e575a04a6988bc0cf00b89842.tar.gz |
fix bug #76801: phpdbg too many open files error
Diffstat (limited to 'sapi/phpdbg/tests')
-rw-r--r-- | sapi/phpdbg/tests/bug76801.phpt | 15 | ||||
-rw-r--r-- | sapi/phpdbg/tests/empty.inc | 0 | ||||
-rw-r--r-- | sapi/phpdbg/tests/include_once_001.phpt (renamed from sapi/phpdbg/tests/include_once.phpt) | 0 | ||||
-rw-r--r-- | sapi/phpdbg/tests/include_once_002.phpt | 15 |
4 files changed, 30 insertions, 0 deletions
diff --git a/sapi/phpdbg/tests/bug76801.phpt b/sapi/phpdbg/tests/bug76801.phpt new file mode 100644 index 0000000000..12ec8c7789 --- /dev/null +++ b/sapi/phpdbg/tests/bug76801.phpt @@ -0,0 +1,15 @@ +--TEST-- +include()ing files should not raise "too many open files" error +--PHPDBG-- +r +q +--EXPECTF-- +[Successful compilation of %s] +prompt> [Script ended normally] +prompt> +--FILE-- +<?php + +for ($i = 0; $i < 25000; ++$i) { + include __DIR__.'/empty.inc'; +} diff --git a/sapi/phpdbg/tests/empty.inc b/sapi/phpdbg/tests/empty.inc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/sapi/phpdbg/tests/empty.inc diff --git a/sapi/phpdbg/tests/include_once.phpt b/sapi/phpdbg/tests/include_once_001.phpt index b91f5e83a0..b91f5e83a0 100644 --- a/sapi/phpdbg/tests/include_once.phpt +++ b/sapi/phpdbg/tests/include_once_001.phpt diff --git a/sapi/phpdbg/tests/include_once_002.phpt b/sapi/phpdbg/tests/include_once_002.phpt new file mode 100644 index 0000000000..742decf10b --- /dev/null +++ b/sapi/phpdbg/tests/include_once_002.phpt @@ -0,0 +1,15 @@ +--TEST-- +include_once must include only once #2 +--PHPDBG-- +r +q +--EXPECTF-- +[Successful compilation of %s] +prompt> 1 +[Script ended normally] +prompt> +--FILE-- +<?php + +include __DIR__.'/include.inc'; +include_once __DIR__.'/include.inc'; |