#16113 [Opn->Bgs]: Circulaire includes makes Apache hang.
| From: | iliaa@php.net | Date: | Tue, 13 Aug 2002 14:22:16 +0000 |
| Subject: | #16113 [Opn->Bgs]: Circulaire includes makes Apache hang. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16618@lists.php.net to get a copy of this message | ||
ID: 16113
Updated by: iliaa@php.net
Reported By: tozz@embrace.selwerd.nl
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Any? (Mine: Linux 2.4.13)
PHP Version: 4.1.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Just like any other programming/scripiting language, PHP can be used to
cause trouble.
To avoid this kind of problems use include_once or require_once.
Previous Comments:
------------------------------------------------------------------------
[2002-03-17 14:46:46] tozz@embrace.selwerd.nl
And this issue can also be abused by users that want to DoS webservers.
------------------------------------------------------------------------
[2002-03-16 12:35:35] tozz@embrace.selwerd.nl
Hello,
Althought its the user responsibility to verify his scripts, my user
did not have enough knowledge of PHP to be able to verify all his
scripts and my Apache died.
The problem?
In short, i reproduced the problem by making 2 files:
file1.php:
<? include("http://host.name/file2.php"); ?>
file2.php
<? include("http://host.name/file1.php"); ?>
When you open http://host.name/file1.php you will see an
enormous
amount of Apache childs. And apache hangs (it does not respond to new
requests!).
I know its the user his fault, but when you have a very complicated
website this might happen because of bugs in your scripts. Because of
this my Apache webserver died and I had to restart Apache to make it
work again. Perhaps its a good idea to add somekind of check to
prevent things like this?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16113&edit=1