Bug #18074: class method infinite recursion causes SIGSEGV
| From: | nepto at pobox dot sk | Date: | Sun, 30 Jun 2002 19:56:42 +0000 |
| Subject: | Bug #18074: class method infinite recursion causes SIGSEGV | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-12595@lists.php.net to get a copy of this message | ||
From: nepto@pobox.sk
Operating system: FreeBSD, Linux
PHP version: 4.1.2
PHP Bug Type: Reproducible crash
Bug description: class method infinite recursion causes SIGSEGV
Following script causes SIGSEGV of PHP interpreter version 4.1.2 and 4.1.0.
Maybe affect also another versions, but only these two were tested.
Reproduction is simple. Run this from shell:
$ php kill-php.php
<?php
// kill-php.php - PHP interpreter kill (sigfaulter)
// (c) 2002 Ondrej Jombik <nepto@pobox.sk> [30/5/2002]
// $Id: kill-php.php,v 1.3 2002/05/31 17:03:43 jombik9 Exp $
// Works with 4.1.2, 4.1.0. Other versions untested.
// If you test this script with others version of PHP,
// please write and commit result here.
class Bar
{
function Foo($param)
{
return Bar::Foo($param);
}
}
Bar::Foo(1);
?>
--
Edit bug report at http://bugs.php.net/?id=18074&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18074&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18074&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18074&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18074&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18074&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18074&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18074&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18074&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18074&r=globals