1--TEST-- 2Bug #74673 (Segfault when cast Reflection object to string with undefined constant) 3--FILE-- 4<?php 5 6class A 7{ 8 public function method($test = PHP_SELF + 1) 9 { 10 } 11} 12 13$class = new ReflectionClass('A'); 14 15echo $class; 16?> 17--EXPECTF-- 18Class [ <user> class A ] { 19 @@ %s 20 21 - Constants [0] { 22 } 23 24 - Static properties [0] { 25 } 26 27 - Static methods [0] { 28 } 29 30 - Properties [0] { 31 } 32 33 - Methods [1] { 34 Method [ <user> public method method ] { 35 @@ %s 36 37 - Parameters [1] { 38 Parameter #0 [ <optional> $test = PHP_SELF + 1 ] 39 } 40 } 41 } 42} 43