php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10279 recursive loop problem
Submitted: 2001-04-11 01:39 UTC Modified: 2001-04-11 02:16 UTC
From: nf at labyrinth dot net dot au Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 4.0.4 OS: FreeBSD 4.1.1-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nf at labyrinth dot net dot au
New email:
PHP Version: OS:

 

 [2001-04-11 01:39 UTC] nf at labyrinth dot net dot au
--- begin test.php ---
<?

$test = include("test.php");

?>
--- end test.php ---

This brought my whole server to it's knees. It basically ate all the resources it could find and filled up all the swap space until the kernel went "erk".

I haven't done much research but I'm aware that there are ways of detecting this kind of script.

Maybe this isn't really a bug, but it's something worth thinking about (or at least documenting).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-11 02:16 UTC] derick@php.net
This is not a bug, we have include_once() and require_once() for this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 15:01:31 2025 UTC