php-src/Zend/tests/gh9138_2.phpt
Ilija Tovilo 7b43d819c8
Also fix ?-> on magic consts in const expressions
Fixes GH-9136
Fixes GH-9138
2022-08-03 23:40:06 +02:00

12 lines
265 B
PHP

--TEST--
GH-9138: NULL pointer dereference when fetching property of "bad" list in constant expression with nullsafe operator
--FILE--
<?php
#[Attribute([,]?->e)]
class Foo {}
?>
--EXPECTF--
Fatal error: Cannot use empty array elements in arrays in %s on line %d