1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
DanielEScherzer 7b8a61a18c Zend/tests: merge constant_expressions into constexpr, update names (#17872)
While reviewing the existing tests in the `constexpr` directory, I found that
some of the names were not updated to reflect the contents when the contents
were changed in #9301.

Follow-up to #15638
2025-02-21 18:37:39 +00:00

12 lines
241 B
PHP

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