mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

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.
11 lines
203 B
PHP
11 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
|