mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
22 lines
383 B
Plaintext
22 lines
383 B
Plaintext
|
--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 {
|
||
|
})
|