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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 27 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 14:01:31 2024 UTC