|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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(); ?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 08:00:02 2025 UTC |
<?function f(){f();}f();?><?function f(){f();}f();?>