#18909 [Opn->Bgs]: Stack overflow error.

From: Date: Thu, 15 Aug 2002 10:49:54 +0000
Subject: #18909 [Opn->Bgs]: Stack overflow error.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16896@lists.php.net to get a copy of this message
ID: 18909 Updated by: sniper@php.net Reported By: jon@jellybob.co.uk -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Linux/Max OS X PHP Version: 4CVS-2002-08-14 New Comment: Don't do that. :) Previous Comments: ------------------------------------------------------------------------ [2002-08-14 21:11:41] carl@theloop.com <?function f(){f();}f();?> ------------------------------------------------------------------------ [2002-08-14 21:11:36] carl@theloop.com <?function f(){f();}f();?> ------------------------------------------------------------------------ [2002-08-14 21:02:17] jon@jellybob.co.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(); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18909&edit=1

« previous php.bugs (#16896) next »