Bug #71922 [Csd]: Crash on assert(new class{});
| From: | bugs dot php dot net at ss dot st dot tc | Date: | Tue, 29 Mar 2016 17:33:20 +0000 |
| Subject: | Bug #71922 [Csd]: Crash on assert(new class{}); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200227@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: Closed
Type: Bug
Package: Reproducible crash
Operating System: Linux, OSX
PHP Version: 7.0.4
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Thanks Nikita!
Previous Comments:
------------------------------------------------------------------------
[2016-03-29 17:30:30] nikic@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ed06d130f70691cb50bed9dc7b9db38970a9d408
Log: Fixed bug #71922
------------------------------------------------------------------------
[2016-03-29 16:57:39] bugs dot php dot net at ss dot st dot tc
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
------------------------------------------------------------------------
[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