|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69174 leaks when unused inner class use traits precedence
Submitted: 2015-03-03 18:05 UTC Modified: 2015-03-04 03:31 UTC
From: Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.5.22 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2015-03-03 18:05 UTC]
This leaks, and it was uncovered by master's AST dumper test: Zend/tests/assert/expect_015.php 

Test script:
function test() {
  class B {
    use T1, T2 {
        T1::foo insteadof T2;

echo "DONE\n";

Expected result:
No leak

Actual result:
[Wed Mar  4 02:05:32 2015]  Script:  '/Users/reeze/015.php'
Zend/zend_language_scanner.l(1913) :  Freeing 0x10672F010 (3 bytes), script=/Users/reeze/015.php
=== Total 1 memory leaks detected ===


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-04 03:31 UTC]
I can reproduce this without opcache.

will have a look
 [2015-03-04 03:42 UTC]
Thanks. I add a PR for this as well.
 [2015-03-05 10:45 UTC]
Automatic comment on behalf of laruence
Log: Fixed bug #69174 (leaks when unused inner class use traits precedence)
 [2015-03-05 10:45 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 19:01:26 2019 UTC