|  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: Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.4Git-2019-12-18 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 12 = ?
Subscribe to this entry?

 [2019-12-18 09:48 UTC]
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:
class X {
    function method($a): T {}
trait T {
    function method($r): B {}
class U extends X {
    use T;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-28 09:45 UTC]
Automatic comment on behalf of
Log: Fixed bug #78989
 [2020-01-28 09:45 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jan 21 22:01:23 2021 UTC