|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2016-03-29 16:50 UTC] bugs dot php dot net at ss dot st dot tc
 Description:
------------
assert(new class{});
Actual result:
--------------
Segfault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
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