Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323382 - PDT doesn't recognize the goto statement or labels
Summary: PDT doesn't recognize the goto statement or labels
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-23 08:36 EDT by aib CLA
Modified: 2020-05-14 11:16 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 aib CLA 2010-08-23 08:36:30 EDT
PDT 2.2.0.v20100519 gives syntax error on valid PHP code containing gotos.

Example taken from the PHP manual:

<?php
goto a;
echo 'Foo';
 
a:
echo 'Bar';
?>

Above will give "syntax error" on both lines containing the label "a".
Comment 1 Zhongwei Zhao CLA 2010-08-23 09:52:18 EDT
it works for php5.3 but not less version!
Comment 2 Zhongwei Zhao CLA 2010-08-25 00:45:15 EDT
I found this in php manual
The goto operator is available as of PHP 5.3
Comment 3 aib CLA 2010-08-25 10:23:27 EDT
Dang, I have somehow reset my PHP version setting back to 5.1/5.2. No wonder anonymous functions also gave errors.

Closing this as "invalid".