Closed
Description
Description
The following code:
<?php
const TEST = 'Message';
class C {
#[\Deprecated(self::C)]
const C = TEST;
}
var_dump(C::C);
Resulted in this output:
Segfault
But I expected this output instead:
Deprecated constant C::C
string(7) "Message"
PHP Version
PHP 8.4
Operating System
No response