ID: 32070
Updated by: [EMAIL PROTECTED]
Reported By: riseofthethorax at earthlink dot net
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: Linux cgi30 2.4.29-grsec #4 SMP
PHP Version: 4.3.10
New Comment:
Your code gives only "Parse error: syntax error, unexpected
T_VARIABLE".
Please supply more info.
Previous Comments:
------------------------------------------------------------------------
[2005-02-23 00:12:39] riseofthethorax at earthlink dot net
Description:
------------
Well my webhost had upgraded from 4.28 to 4.3.10,
and one of my scripts was failing.. I narrowed down the
bug to this one line.. For some reason it made the difference
between showning a submission form and dumping what looks like
a partial dump of all the php code on the script.
//. '<br><table width=100%><tr><td align=right>' .
$messages['mandatory'] . $messages['incorrect'] .
'</td></tr></table><br>'
Reproduce code:
---------------
$crap = '<form action="' . $complete_url . '" method=POST>'
. '<table border=2 width=100%><tr><td
align=center><table><tr><td
align=center>' . $messages['mandatory'] . $messages['incorrect'] .
'</td></tr></table></td></tr></table><br>'
. $button_set
. "<br><br><br>"
. '<table border=1 ><tr><td>'
. $precrap
. "</td></tr></table>"
. '<input type=hidden name=generate value=1>'
. "<br><br><br>"
. $button_set
. '<br><br><br><table border=2 width=100%><tr><td
align=center><table><tr><td align=center>' . $messages['mandatory'] .
$messages['incorrect'] . '</td></tr></table></td></tr></table><br>'
//. '<br><table width=100%><tr><td align=right>' .
$messages['mandatory'] . $messages['incorrect'] .
'</td></tr></table><br>'
. '</form>';
Expected result:
----------------
IT creates a form by concantenating some
assoaciative variables together with strings..
Actual result:
--------------
Picture a complete dump of everything in the script..
Removal of the line
//. '<br><table width=100%><tr><td align=right>' .
$messages['mandatory'] . $messages['incorrect'] .
'</td></tr></table><br>'
Displays the form as it was intended..
Its something having to do with that //. I think..
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32070&edit=1