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

Bug 318891

Summary: Initial code folding for functions sometimes incorrect when the function contains html
Product: z_Archived Reporter: tgross
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description tgross CLA 2010-07-05 09:30:18 EDT
Build Identifier: 20100617-1415

Some PHP functions, especially when they contain html, are not folded on opening the file, although "Initially fold these elements: Functions" in "Preferences / PHP / Editor / Code folding" is checked.

Reproducible: Always

Steps to Reproduce:
1. In Preferences / PHP / Editor / Code folding, activate "Enable folding" and "Initially fold these elements: Functions"

2. create a php-file containing the following code:

<?php
function showHead()
{
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
</head>
<?php
}

3. Save and close the file, then open it. The function "showHead()" is NOT completely folded.
Comment 1 Zhongwei Zhao CLA 2010-07-06 01:12:35 EDT
fixed in head and branch
Comment 2 Gadi Goldbarg CLA 2010-08-26 10:24:21 EDT
[Petyo Tanchev]

Tested on 2.2.1 SR1
Fixed