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

Bug 351737

Summary: Inserting tags between two <?php ?> tags causes garbled text
Product: z_Archived Reporter: Missing name <bryan>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: ganoro, silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Missing name CLA 2011-07-11 13:16:07 EDT
Build Identifier: 20110615-0604

When combining HTML and PHP in the same file: standard html, followed by an opened and closed php tag, then followed by another opened and closed php tag, finally followed by more html.  If *any* type of tags that start with "<" is attempted to be added between the two php tags, the editor will hang and then all text entered afterwards will be garbled.  Clicking around in the editor places text at the location of the cursor that was not typed.

Opening and closing the php file fixes the garbled text issue, but you are still unable to add a new tag between the two tags.

Reproducible: Always

Steps to Reproduce:
Copy/Paste this into a PDT project.

------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<?php echo $this->Html->charset(); ?>
	<!-- add tag here -->
	<?php
		echo $this->Html->css(array(
			'cake.generic'
		)),
		$scripts_for_layout;
	?>
</head>
<body></body>
</html>

----------------

Attempt to add a <div> tag or another <?php ?> tag where the comment says "add tag here"
Comment 1 Zhongwei Zhao CLA 2011-07-12 03:42:01 EDT
hi,
I think it is duplicate of 350139,which has been fixed in head.
Comment 2 Roy Ganor CLA 2011-08-09 05:04:21 EDT
per Zhao's comment, closing

*** This bug has been marked as a duplicate of bug 350139 ***
Comment 3 Sylvia Tancheva CLA 2011-10-18 08:23:53 EDT
Verified.
 Ilina Stefanova