mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
17 lines
326 B
PHP
17 lines
326 B
PHP
--TEST--
|
|
GH-10014: Incorrect short-circuiting in constant expressions
|
|
--FILE--
|
|
<?php
|
|
|
|
#[Attribute(+[[][2]?->y]->y)]
|
|
class y {
|
|
}
|
|
|
|
(new ReflectionClass(y::class))->getAttributes()[0]->newInstance();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined array key 2 in %s on line %d
|
|
|
|
Warning: Attempt to read property "y" on array in %s on line %d
|