Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331636

Summary: PHP Explorer list of functions within PHP file broken by function containing an anonymous function
Product: z_Archived Reporter: Michali Sarris <michali.sarris>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: minor    
Priority: P1 CC: ganoro
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michali Sarris CLA 2010-12-02 04:33:04 EST
Build Identifier: 20100617-1415

When a PHP file contains a function that contains an anonymous function (PHP 5.3 feature), like in the following example:

function a() {}
function b() {
	$test = function() {};
}
function c() {}
function d() {}

Then the list of functions within the file (by expanding the file in the PHP Explorer tree) should show functions a, b, c and d.

However is seems that the anonymous function breaks the feature. Only functions a and b will be listed.

Reproducible: Always

Steps to Reproduce:
1. Open any PHP file which contains functions.
2. Add a function in the top (or anywhere above other functions) containing an anonymous function.
3. Save the file.
4. The list of functions within the file only shows functions up to the newly added function.
Comment 1 Zhongwei Zhao CLA 2011-05-04 03:56:10 EDT
fixed
Comment 2 Zhongwei Zhao CLA 2011-05-04 04:00:38 EDT
change status
Comment 3 Ilina Stefanova CLA 2011-07-26 03:29:08 EDT
Verified.