|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-01-22 10:24 UTC] jay@php.net
[2004-01-22 10:37 UTC] kmb at deam dot org
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Feb 10 00:00:02 2026 UTC |
Description: ------------ Calling somith within a PHP-Script recursively can result into one of these results: 1. general PHP-error and stop 2. max_execution_time and stop 3. max_input_time and stop 4. memory_limit and stop If you use the file()-function to call yourself, one of the upper limits will occure, but it won't stop with that. You can overload the Apache with a lot of reqeusts so that there will be no more response. Your initial request will timeout, but the Apache won't come back if you do not restart it. The trouble is, that there is currently no way to suppress this behaviour or at least leave some resources open.... Reproduce code: --------------- $in = file("http://local.dom/myself.php", "r"); Expected result: ---------------- some sort of "filter" to slow down the request of resource-usage. Actual result: -------------- It uses up all Apache-processes up to MaxClient-Limit and ends in a total DOS of the Apache.