mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

This is not safe to do at this point. Even if we made it safe, we'd see inconsistencies due to a partially compiled class. Fixes oss-fuzz #28129.
9 lines
245 B
PHP
9 lines
245 B
PHP
--TEST--
|
|
Validation for "Attribute" does not use a scope when evaluating constant ASTs
|
|
--FILE--
|
|
<?php
|
|
#[Attribute(parent::x)]
|
|
class x extends y {}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot access "parent" when no class scope is active in %s on line %d
|