dis-bench / src /php /php-src /Zend /tests /enum /backed-int-const-invalid-expr.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
216 Bytes
--TEST--
Int enum invalid const expr
--FILE--
<?php
enum Foo: int {
case Bar = 1 + $x;
}
var_dump(Foo::Bar->value);
?>
--EXPECTF--
Fatal error: Constant expression contains invalid operations in %s on line %d