mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
22 lines
383 B
PHP
22 lines
383 B
PHP
--TEST--
|
|
Bug #71922: Crash on assert(new class{});
|
|
--INI--
|
|
zend.assertions=1
|
|
assert.exception=1
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
assert(0 && new class {
|
|
} && new class(42) extends stdclass {
|
|
});
|
|
} catch (AssertionError $e) {
|
|
echo "Assertion failure: ", $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Assertion failure: assert(0 && new class {
|
|
} && new class(42) extends stdclass {
|
|
})
|