php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18909 Stack overflow error.
Submitted: 2002-08-14 21:02 UTC Modified: 2002-08-15 06:49 UTC
From: jon at jellybob dot co dot uk Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4CVS-2002-08-14 OS: Linux/Max OS X
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: jon at jellybob dot co dot uk
New email:
PHP Version: OS:

 

 [2002-08-14 21:02 UTC] jon at jellybob dot co dot uk
OK, so this was created when I *tried* to crash PHP, but hey, every little helps.

Should PHP detect a stack overflow, because at the moment it doesn't - the script...

<?php
function foo()
{
  foo()
}
foo();
?>

Will seg-fault PHP, which I guess makes it possible for anyone to kill it off with a bit of effort.

And for the leet of you out there - the following script is the shortest one we've found to do this with :P (A friend and I were looking for the shortest PHP script that will run, but crash...

<? function foo(){foo();}foo(); ?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-14 21:11 UTC] carl at theloop dot com
<?function f(){f();}f();?>
 [2002-08-14 21:11 UTC] carl at theloop dot com
<?function f(){f();}f();?>
 [2002-08-15 06:49 UTC] sniper@php.net
Don't do that. :)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 06:01:38 2025 UTC