Bug #67158 [Fbk->Opn]: unwanted semicolon in output
Edit report at https://bugs.php.net/bug.php?id=67158&edit=1
ID: 67158
User updated by: jcmartin70 at hotmail dot com
Reported by: jcmartin70 at hotmail dot com
Summary: unwanted semicolon in output
-Status: Feedback
+Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.4.27
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (5 messages)