Doctrine Common
  1. Doctrine Common
  2. DCOM-231

Lifecycle-Callback MappingExceptions for abstract functions in PHP >=5.4.8

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7 x64, PHP 5.5.3

      Description

      Hi,

      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.

      cheers

      konrad

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Konrad Mohrfeldt
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: