Bug #14912: Endless Recursion in method
| From: | fbeyer at clickhand dot de | Date: | Mon, 07 Jan 2002 16:33:12 +0000 |
| Subject: | Bug #14912: Endless Recursion in method | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76195@lists.php.net to get a copy of this message | ||
From: fbeyer@clickhand.de
Operating system: Windows 98
PHP version: 4.1.0
PHP Bug Type: Class/Object related
Bug description: Endless Recursion in method
I'm using PHP 4.1.0 on Windows 98 with no DLL-Extensions loaded.
Accidently I wrote a class method that called itself instead of an other
method:
function getText($id)
{
...
return $text; // A valid string
}
function getHTML($id)
{
return htmlentities($this->getHTML($id)); // Here is my misstake: Should be
getText() instead getHTML()
}
This code causes my Apache/1.3.20 (Win32) to crash. Okay, it's my misstake
as programmer but should a wrong code be able to crash the server???
Thank you guys, you do a great job!
Ferdinand Beyer
<fbeyer@clickhand.de>
--
Edit bug report at: http://bugs.php.net/?id=14912&edit=1