|  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
 [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...

function 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(); ?>


Add a Patch

Pull Requests

Add a Pull Request


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]
Don't do that. :)

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 17 16:05:45 2022 UTC