php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72226 Cannot inherit from final class (ImagickException)
Submitted: 2016-05-17 02:21 UTC Modified: 2016-07-14 15:55 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:0 of 0 (0.0%)
From: rulisp at vigo dot su Assigned: danack (profile)
Status: Closed Package: imagick (PECL)
PHP Version: 7.0.6 OS: Debian sid
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: rulisp at vigo dot su
New email:
PHP Version: OS:

 

 [2016-05-17 02:21 UTC] rulisp at vigo dot su
Description:
------------
Hello. Since Imagick v3.4.0 for PHP 7 I can't inherit ImagickException because it becomes final. I suppose that this is a bug. I installed Imagick v3.4.2-beta and error still exists.

Test script:
---------------
class test_ololo extends ImagickException {}

Expected result:
----------------
Class test_ololo inherit ImagickException

Actual result:
--------------
Fatal error: Class test_ololo may not inherit from final class (ImagickException)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-17 05:26 UTC] krakjoe@php.net
-Assigned To: +Assigned To: danack
 [2016-06-04 22:48 UTC] danack@php.net
Thanks this is fixed for the next release.

The cause was that the flag ZEND_ACC_FINAL changed meaning in PHP 7, so all releases of Imagick were affected.
 [2016-07-14 15:55 UTC] cmb@php.net
> Thanks this is fixed for the next release.

So I assume the ticket can be closed.
 [2016-07-14 15:55 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC