|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32070 //. causes php to dump its code to stdout
Submitted: 2005-02-23 00:12 UTC Modified: 2005-03-20 18:01 UTC
From: riseofthethorax at earthlink dot net Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.10 OS: Linux cgi30 2.4.29-grsec #4 SMP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: riseofthethorax at earthlink dot net
New email:
PHP Version: OS:


 [2005-02-23 00:12 UTC] riseofthethorax at earthlink dot net
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.. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-23 01:11 UTC]
Your code gives only "Parse error: syntax error, unexpected T_VARIABLE".
Please supply more info.
 [2005-03-20 18:01 UTC]
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 "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 16:01:29 2024 UTC