Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331636 - PHP Explorer list of functions within PHP file broken by function containing an anonymous function
Summary: PHP Explorer list of functions within PHP file broken by function containing ...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 minor (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 04:33 EST by Michali Sarris CLA
Modified: 2020-05-14 11:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.