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

Bug 315972

Summary: Auto strategy in IF statement doesn't work properly
Product: z_Archived Reporter: Roy Ganor <ganoro>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: gadi, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.