php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76025 Segfault while throwing exception in error_handler
Submitted: 2018-02-28 02:36 UTC Modified: -
From: laruence@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.1.14 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [2018-02-28 02:36 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-28 10:17 UTC] laruence@php.net
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).
 [2018-02-28 10:17 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 31 20:01:32 2025 UTC