php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78989 Delayed variance check involving trait segfaults
Submitted: 2019-12-18 09:48 UTC Modified: -
From: nikic@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.4Git-2019-12-18 (Git) 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nikic@php.net
New email:
PHP Version: OS:

 

 [2019-12-18 09:48 UTC] nikic@php.net
Description:
------------
Delayed variance checks may crash when traits are involved. I believe this is because we keep around a zend_function pointer to a zend_function that only exists temporarily.

Test script:
---------------
<?php
class X {
    function method($a): T {}
}
trait T {
    function method($r): B {}
}
class U extends X {
    use T;
}



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-28 09:45 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1146bdb9b21cdf725dd5ea8882221356779926b6
Log: Fixed bug #78989
 [2020-01-28 09:45 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC