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

Bug 319921

Summary: PHP 5.3 anonymous function inside method break code assis
Product: z_Archived Reporter: Michael <gern_>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: gadi, gern_
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael CLA 2010-07-14 16:56:35 EDT
Build Identifier: 20100617-1415

Using PHP 5.3 lambda function inside class's method break code assist for the class. (See step to reproduce)

Reproducible: Always

Steps to Reproduce:
1. Create a new file 'lambda.php'

<?php

class Klass
{
	public function A () {
		// This is a method
	}
	
	static public function B ()
	{
		// This is a static method
		
		$subB = function () {
			// This is a lambda function that break
		};
	}
	
	public function C () {
		// This is a method that dont belong in Klass
	}
	
	static public function D ()
	{
		// This is a static method that dont belong in Klass
	}
}

2. In the Outline / Project Outline you should see

public Klass
- public A()
- static public B() // lambda function inside
public C()
static public D()

3. Expected result

public Klass
- public A()
- static public B() // lambda function inside
- public C()
- static public D()
Comment 1 Zhongwei Zhao CLA 2010-07-14 23:16:31 EDT
fixed already,duplicate of bug 319001

*** This bug has been marked as a duplicate of bug 319001 ***
Comment 2 Gadi Goldbarg CLA 2010-08-26 09:05:09 EDT
[Petyo Tanchev]

Duplicate of bug 319001
Closing