php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56746 Can't inherit from class inheriting from Exception class
Submitted: 2005-12-24 21:11 UTC Modified: 2006-12-20 17:51 UTC
From: mg at iceni dot pl Assigned: val (profile)
Status: Closed Package: bcompiler (PECL)
PHP Version: 5.1.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mg at iceni dot pl
New email:
PHP Version: OS:

 

 [2005-12-24 21:11 UTC] mg at iceni dot pl
Description:
------------
When I try to compile and load file defining class which   
inherits from class inheriting from builtin Exception 
class, PHP throws a fatal error.  

Reproduce code:
---------------
<?php  
class RuntimeException extends Exception  
{  
}  
  
class InvalidParamException extends RuntimeException  
{  
}  
?>  

Expected result:
----------------
No error.  

Actual result:
--------------
"Fatal error: Cannot override final method 
Exception::__clone()"  

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 17:51 UTC] val@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 04:03:23 2021 UTC