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

Bug 323382

Summary: PDT doesn't recognize the goto statement or labels
Product: z_Archived Reporter: aib <aibok42>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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".