mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
7b43d819c8
Fixes GH-9136 Fixes GH-9138
12 lines
265 B
PHP
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
|