#32070 [Opn->Fbk]: //. causes php to dump its code to stdout

From: Date: Wed, 23 Feb 2005 00:11:31 +0000
Subject: #32070 [Opn->Fbk]: //. causes php to dump its code to stdout
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74448@lists.php.net to get a copy of this message
ID: 32070 Updated by: tony2001@php.net 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

« previous php.bugs (#74448) next »