Test: /ext/reflection/tests/bug74673.phpt - Version 7.4.0-dev        

Bug #74673 Segfault when cast Reflection object to string with undefined constant
Submitted: 2017-05-30 13:55:21 Modified:
From: luxifer666 Assigned:
Status: Closed Package: Reflection related
PHP Version: 7.1.5 OS: Debian GNU/Linux 8.8 (jessie)

There are 2 different diffs reported by users for this test.

Count Diff
4 (67%)
001+ Fatal error: Uncaught Exception in %s/bug74673.php:4
001- Fatal error: Method ReflectionClass::__toString() must not throw an exception, caught Exception: in %sbug74673.php on line %d
002+ Stack trace:
003+ #0 [internal function]: {closure}(2, 'Use of undefine...', '/home/travis/bu...', 16, Array)
004+ #1 %s/bug74673.php(16): ReflectionClass->__toString()
005+ #2 {main}
006+ thrown in %s/bug74673.php on line 4
2 (33%)
003+ #0 [internal function]: {closure}()
003- #0 [internal function]: {closure}(2, 'Use of undefine...', %s, %d, Array)