Bug #67158 [Opn->Fbk]: unwanted semicolon in output

From: Date: Wed, 30 Apr 2014 13:16:21 +0000
Subject: Bug #67158 [Opn->Fbk]: unwanted semicolon in output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185521@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67158&edit=1 ID: 67158 Updated by: ab@php.net Reported by: jcmartin70 at hotmail dot com Summary: unwanted semicolon in output -Status: Open +Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: Windows XP PHP Version: 5.4.27 Block user comment: N Private report: N New Comment: What are you trying to achieve with this? echo $$tableheader; Previous Comments: ------------------------------------------------------------------------ [2014-04-30 12:26:47] jcmartin70 at hotmail dot com Description: ------------ I have the following code. When parsed into the browser I am getting a semicolon right in front of the <td> in the first row of the table. I have placed a capital "X" in the code to show exactly where the semicolon shows up. I have tried deleting the white space etc., there are no semicolons in the code or leaking in from the style sheet. It would appear that the parsing engine is putting the semicolon right in the beginning of the table. The script uses the heredoc syntax and is running in a separate file called by AJAX. Thanks. Test script: --------------- $tableheader=<<<abc <br/><div id="divContainer"> <table class="formatHTML5"> <colgroup> <col width="5%"> <col width="15%"> <col width="15%"> <col width="15%"> <col width="30%"> <col width="15%"> <col width="5%"> </colgroup> <thead> <tr> X<td colspan="7" style="font-size:14px"><p><b>Hi $first you have $recsout searches available this month</b></p><b>Type the Phrase in the Appropriate Search Engine and Answer the Question<br/>Click on Next Term<br/>Click Logoff at any time to save your session if you cannot finish in one sitting</b></td> </tr> <tr> <th></th> <th>Go To</th> <th>Search for this Phrase</th> <th>Click on this Link</th> <th>Answer this Question</th> <th>Your Answer</th> <th>Answer Flag</th> </tr> </thead> <tbody> abc; echo $$tableheader; Expected result: ---------------- HERE IS THE OUTPUT AS RENDERED: X; Hi jack you have 10 searches available this month Type the Phrase in the Appropriate Search Engine and Answer the Question Click on Next Term Click Logoff at any time to save your session if you cannot finish in one sitting Actual result: -------------- I would expect: (The 'X' is only there to show you the insertion point of the semicolon) X Hi jack you have 10 searches available this month Type the Phrase in the Appropriate Search Engine and Answer the Question Click on Next Term Click Logoff at any time to save your session if you cannot finish in one sitting ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67158&edit=1

« previous php.bugs (#185521) next »