Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315972 - Auto strategy in IF statement doesn't work properly
Summary: Auto strategy in IF statement doesn't work properly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-07 08:48 EDT by Roy Ganor CLA
Modified: 2020-05-14 11:08 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 Roy Ganor CLA 2010-06-07 08:48:47 EDT
n the following code (cursor after the curly bracket):
if ($a==$b) {|echo $c;
pressing Enter produces different results in ZDE 5.5 and in Zend Studio 7.2.

Expected behavior:
if ($a==$b) {
    echo $c;
}

Currently:
if ($a==$b) {

}echo $c;

(reported by a used)
Comment 1 Zhongwei Zhao CLA 2010-07-06 23:03:07 EDT
works both in branch and head(fixed?)
Comment 2 Gadi Goldbarg CLA 2010-08-23 09:55:20 EDT
[Petyo Tanchev]

Tested on 2.2.0 from 13.08.2010
Works as expected.