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

From: Date: Mon, 12 May 2014 11:33:30 +0000
Subject: Bug #67158 [Fbk->NoF]: unwanted semicolon in output
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185776@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: Feedback +Status: No 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: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-05-01 18:18:58] aharvey@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. I can't reproduce this with the code you've provided: http://3v4l.org/sF9EK I would strongly suspect that the semicolon is coming from somewhere else in your code and is just appearing there due to a quirk in your styling. ------------------------------------------------------------------------ [2014-04-30 21:11:55] jcmartin70 at hotmail dot com Its just $tableheader, the extra dollar sign was a typo, sorry. The problem is where the 'X' is. I am getting a semicolon out of nowhere. Heredoc via ajax ------------------------------------------------------------------------ [2014-04-30 13:16:21] ab@php.net What are you trying to achieve with this? echo $$tableheader; ------------------------------------------------------------------------ [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 (#185776) next »