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

Bug 329759

Summary: folded functions are uncorrectly opened if they contain JavaScript code
Product: z_Archived Reporter: tgross
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description tgross CLA 2010-11-09 06:25:41 EST
Build Identifier: 20100917-0705

folded PHP functions that contain JavaScript code automatically open when any key is pressed.

Reproducible: Always

Steps to Reproduce:
1. create a php-file containing the following code:

<?php
function test1() {
?>
<script type="text/javascript">
</script>
<?php
}
function test2() {
}

3. Fold both functions test1() and test2().

4. Place the cursor at the end of the file, then press RETURN.

Now, the <script>-block inside test1() is partially open. Also, the cursor now is at a different position.
Comment 1 xu jiaxi CLA 2010-11-10 01:31:22 EST
I found the reason for this bug is if the function contains expanded folding html tag, then it will be happend.

Furthermore, I found anther bug for HTML folding in PHP editor, I will report it later.