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

Bug 324515

Summary: Variable functions found as syntax error.
Product: z_Archived Reporter: Dan <DunnKz>
Component: PDTAssignee: PHP Debug <php.debug-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: ganoro, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dan CLA 2010-09-04 11:50:55 EDT
Build Identifier: 20100617-1415

Example of code that generates error:
<?php
$example = function () {
	echo 'Eclipse Bug';
};
$example();
?>
On the 2nd line, the word "function" is underlined.

Reproducible: Always

Steps to Reproduce:
1. Copy and paste my snippet I posted below.
Comment 1 Dan CLA 2010-09-04 11:53:00 EDT
There is a typo: "above", not "below".
Comment 2 Roy Ganor CLA 2010-09-04 14:36:54 EDT
please set your project setting to accept php 5.3 syntax
Comment 3 Sylvia Tancheva CLA 2010-09-17 03:42:10 EDT
Confirmed by QA:
- if the project was 5.2 this will be marked as error
- if the project is set to be 5.3, it is OK - no errors or warnings.
Closing the issue.