1--TEST-- 2GH-11937: Segfault in format_default_value due to unexpected enum/object 3--FILE-- 4<?php 5 6enum TestEnum { 7 case One; 8 case Two; 9 const CASES = [self::One, self::Two]; 10} 11 12var_dump(TestEnum::CASES); 13 14require __DIR__ . '/gh11937_1.inc'; 15 16echo (new ReflectionFunction('test'))->getAttributes('Attr')[0]; 17 18?> 19--EXPECT-- 20array(2) { 21 [0]=> 22 enum(TestEnum::One) 23 [1]=> 24 enum(TestEnum::Two) 25} 26Attribute [ Attr ] { 27 - Arguments [1] { 28 Argument #0 [ new \Foo(TestEnum::CASES) ] 29 } 30} 31