mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
683d81e4bd
Fixes GH-10014
15 lines
257 B
PHP
15 lines
257 B
PHP
--TEST--
|
|
GH-10014: Incorrect short-circuiting in constant expressions
|
|
--FILE--
|
|
<?php
|
|
|
|
#[Attribute(+[[][2]?->y]->y)]
|
|
class y {
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined array key 2 in %s on line %d
|
|
|
|
Warning: Attempt to read property "y" on array in %s on line %d
|