[DCOM-231] Lifecycle-Callback MappingExceptions for abstract functions in PHP >=5.4.8 Created: 26/Sep/13  Updated: 03/Feb/14  Resolved: 03/Feb/14

Status: Resolved
Project: Doctrine Common
Component/s: None
Affects Version/s: 2.4
Fix Version/s: 2.4.2
Security Level: All

Type: Bug Priority: Minor
Reporter: Konrad Mohrfeldt Assignee: Benjamin Eberlei
Resolution: Fixed Votes: 0
Labels: None

Windows 7 x64, PHP 5.5.3



i noticed that in PHP starting with Version 5.4.8 the ReflectionService implementations returns a different result for the hasPublicMethod function than in PHP <= 5.4.7 when called on an abstract function. This prevents me from defining a lifecycle callback on an abstract function for a mapped superclass.

I think that at least for mapped supperclasses it should be checked if the class and the function is abstract so it can be assumed that every extending class has this function and it is in fact callable.

The bug was introduced by a bugfix in PHP 5.4.8.



Comment by Konrad Mohrfeldt [ 10/Oct/13 ]

i’ve created a pull request to fix this issue. see https://github.com/doctrine/common/pull/301

Comment by Konrad Mohrfeldt [ 10/Oct/13 ]

oh… and… this bug should probably be moved to common as it affects orm but is caused in common

Comment by Doctrine Bot [ 03/Feb/14 ]

A related Github Pull-Request [GH-301] was closed:

Generated at Wed Nov 25 07:32:11 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.