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

This will cause a compile error later, but the expression is printed first. Fixes oss-fuzz #37473.
10 lines
165 B
PHP
10 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
|