Bug #69174 [Opn->Csd]: leaks when unused inner class use traits precedence

From: Date: Thu, 05 Mar 2015 10:45:28 +0000
Subject: Bug #69174 [Opn->Csd]: leaks when unused inner class use traits precedence
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191186@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69174&edit=1 ID: 69174 Updated by: laruence@php.net Reported by: reeze@php.net Summary: leaks when unused inner class use traits precedence -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: Any PHP Version: 5.5.22 Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=f039225597b51f2ee02a050391d497ae68d63b39 Log: Fixed bug #69174 (leaks when unused inner class use traits precedence) Previous Comments: ------------------------------------------------------------------------ [2015-03-04 03:42:30] reeze@php.net Thanks. I add a PR for this as well. ------------------------------------------------------------------------ [2015-03-04 03:31:19] laruence@php.net I can reproduce this without opcache. will have a look ------------------------------------------------------------------------ [2015-03-03 18:05:53] reeze@php.net Description: ------------ 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 === ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69174&edit=1

« previous php.bugs (#191186) next »