Bug #14912 Updated: Endless Recursion in method
ID: 14912
Updated by: mfischer
Reported By: fbeyer@clickhand.de
Old Status: Open
Status: Bogus
Bug Type: Class/Object related
Operating System: Windows 98
PHP Version: 4.1.0
New Comment:
Yep, it crashes. See the archives for discussion on this topic.
Previous Comments:
------------------------------------------------------------------------
[2002-01-07 11:33:12] fbeyer@clickhand.de
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 this bug report at http://bugs.php.net/?id=14912&edit=1
Thread (2 messages)