Bug #67158 [NEW]: unwanted semicolon in output
| From: | jcmartin70 at hotmail dot com | Date: | Wed, 30 Apr 2014 12:26:48 +0000 |
| Subject: | Bug #67158 [NEW]: unwanted semicolon in output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185520@lists.php.net to get a copy of this message | ||
From: jcmartin70 at hotmail dot com
Operating system: Windows XP
PHP version: 5.4.27
Package: Scripting Engine problem
Bug Type: Bug
Bug description:unwanted semicolon in output
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 bug report at https://bugs.php.net/bug.php?id=67158&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67158&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67158&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67158&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67158&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67158&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67158&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67158&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67158&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67158&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67158&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67158&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67158&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67158&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67158&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67158&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67158&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67158&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67158&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67158&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67158&r=mysqlcfg