#37905 [Opn->Bgs]: some method's class which extends with interface crash

From: Date: Sat, 24 Jun 2006 08:44:06 +0000
Subject: #37905 [Opn->Bgs]: some method's class which extends with interface crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98735@lists.php.net to get a copy of this message
 ID:               37905
 Updated by:       tony2001@php.net
 Reported By:      sf at cut dot hyh dot pl
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: all
 PHP Version:      5.1.4
 New Comment:

You managed to smash the stack with the endless loop in your code.
This is expected.


Previous Comments:
------------------------------------------------------------------------

[2006-06-24 08:10:31] sf at cut dot hyh dot pl

Description:
------------
see code

Reproduce code:
---------------
interface test
{
	public function display();
}

class A
{
	function display($sTpl)
	{
		echo $sTpl;
	}
}

class B extends A implements test
{
	private $sTpl = 'test';
	
	public function display()
	{
		$this->display($this->sTpl);
	}
}

$oB = new B();
$oB->display();

Expected result:
----------------
some error? ;)

Actual result:
--------------
Segmentation fault


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37905&edit=1


Thread (2 messages)

« previous php.bugs (#98735) next »