php-src/Zend/tests/first_class_callable_assert3.phpt
Nikita Popov b964d007e3 Fix AST print of first class callable in anon class expr
This will cause a compile error later, but the expression is
printed first.

Fixes oss-fuzz #37473.
2021-08-26 12:00:37 +02:00

11 lines
165 B
PHP

--TEST--
new class(...) in assert
--FILE--
<?php
assert(new class(...) {});
?>
--EXPECTF--
Fatal error: Cannot create Closure for new expression in %s on line %d