php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37905 some method's class which extends with interface crash
Submitted: 2006-06-24 08:10 UTC Modified: 2006-06-24 08:44 UTC
From: sf at cut dot hyh dot pl Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.1.4 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sf at cut dot hyh dot pl
New email:
PHP Version: OS:

 

 [2006-06-24 08:10 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-24 08:44 UTC] tony2001@php.net
You managed to smash the stack with the endless loop in your code.
This is expected.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 14:01:33 2025 UTC