- Output for 7.0.7 - 7.0.33, 7.2.12 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
- dummy1 = ErrorHandler::handleError dealing with error Undefined property: Foo::$dummy2, /in/9ScMs:39 THIS IS PRIVATE Never executed in PHP7.2; there is a fatal error in the line above dummy2 = This line is not reached in PHP7.2; but it is reached in PHP 7.0
- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.11
- dummy1 =
ErrorHandler::handleError dealing with error Undefined property: Foo::$dummy2, /in/9ScMs:39
Fatal error: Uncaught Error: Cannot access private property ErrorHandler::$private in /in/9ScMs:28
Stack trace:
#0 /in/9ScMs(17): ErrorHandler->handleError(8, 'Undefined prope...', '/in/9ScMs', 39)
#1 [internal function]: ErrorHandler->{closure}(8, 'Undefined prope...', '/in/9ScMs', 39, Array)
#2 /in/9ScMs(39): ReflectionProperty->getValue(Object(Foo))
#3 /in/9ScMs(48): reproduceBug(Object(Foo))
#4 {main}
thrown in /in/9ScMs on line 28
Process exited with code 255. - Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.6
- dummy1 = dummy2 = This line is not reached in PHP7.2; but it is reached in PHP 7.0