|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79475 [JIT] func_get_args() assertion violation
Submitted: 2020-04-14 13:02 UTC Modified: 2020-04-17 07:55 UTC
From: Assigned: cmb (profile)
Status: Closed Package: opcache
PHP Version: master-Git-2020-04-14 (Git) OS: Windows
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.
Bug Type:
New email:
PHP Version: OS:


 [2020-04-14 13:02 UTC]
If JIT is enabled, trying to add an element to the array returned
by func_get_args() triggers an assertion vialotion[1], because the
array's refcount is 2.

[1] <>

Test script:
function foo() {
    $args = func_get_args();
    $args[] = "bar";

Actual result:
Assertion failed: (zend_gc_refcount(&(ht)->gc) == 1) || ((ht)->u.flags & (1<<6)), file Zend\zend_hash.c, line 965


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-17 07:53 UTC]
Automatic comment on behalf of
Log: Fix #79475: [JIT] func_get_args() assertion violation
 [2020-04-17 07:53 UTC]
-Status: Open +Status: Closed
 [2020-04-17 07:55 UTC]
-Assigned To: +Assigned To: cmb
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 15:01:29 2024 UTC