|  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
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:
37 - 12 = ?
Subscribe to this entry?

 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Feb 28 00:01:28 2020 UTC