Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324515 - Variable functions found as syntax error.
Summary: Variable functions found as syntax error.
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-04 11:50 EDT by Dan CLA
Modified: 2020-05-14 11:24 EDT (History)
2 users (show)

See Also:


Attachments

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