Bug #76025 [Opn->Csd]: Segfault while throwing exception in error_handler
| From: | laruence@php.net | Date: | Wed, 28 Feb 2018 10:17:17 +0000 |
| Subject: | Bug #76025 [Opn->Csd]: Segfault while throwing exception in error_handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214136@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76025&edit=1
ID: 76025
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: Segfault while throwing exception in error_handler
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.1.14
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d5c171311d3a19999bf02cb56b4b082ec5eaaef1
Log: Fixed bug #76025 (Segfault while throwing exception in error_handler).
Previous Comments:
------------------------------------------------------------------------
[2018-02-28 02:36:18] laruence@php.net
Description:
------------
segfault in example codes:
Test script:
---------------
<?php
function handleError($errno, $errstr, $errfile, $errline) {
$exception = new exception("blah");
throw $exception;
}
set_error_handler('handleError', E_ALL);
$c = $b[$a];
Expected result:
----------------
no segfault
Actual result:
--------------
segfault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76025&edit=1