mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
b6dcab2cbb
This is going to result in a compile-time error, but AST printing is invoked first and should handle it gracefully. Handle it by falling back to more generic printing code. Fixes oss-fuzz #36264.
12 lines
203 B
PHP
12 lines
203 B
PHP
--TEST--
|
|
Foo(...) in attribute in assert
|
|
--FILE--
|
|
<?php
|
|
assert(function() {
|
|
#[Foo(...)]
|
|
class Test {}
|
|
});
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot create Closure as attribute argument in %s on line %d
|