Bug #71922 [Opn]: Crash on assert(new class{});
| From: | bugs dot php dot net at ss dot st dot tc | Date: | Tue, 29 Mar 2016 16:57:41 +0000 |
| Subject: | Bug #71922 [Opn]: Crash on assert(new class{}); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200224@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71922&edit=1
ID: 71922
User updated by: bugs dot php dot net at ss dot st dot tc
Reported by: bugs dot php dot net at ss dot st dot tc
Summary: Crash on assert(new class{});
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Linux, OSX
PHP Version: 7.0.4
Block user comment: N
Private report: N
New Comment:
What's noticeable, the code doesn't even have to be executed:
1.php:
------------------------
<?php
function you_dont_have_to_call_me() {
assert(new class{});
}
------------------------
2.php
------------------------
<?php
include '1.php';
------------------------
> php 2.php
Segmentation fault: 11
Previous Comments:
------------------------------------------------------------------------
[2016-03-29 16:50:24] bugs dot php dot net at ss dot st dot tc
Description:
------------
assert(new class{});
Actual result:
--------------
Segfault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71922&edit=1