From: [EMAIL PROTECTED]
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
<[EMAIL PROTECTED]>
--
Edit bug report at: http://bugs.php.net/?id=14912&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]