php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: riseofthethorax at earthlink dot net
New email:
PHP Version: OS:

 

 [2005-02-23 00:12 UTC] 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.. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-23 01:11 UTC] tony2001@php.net
Your code gives only "Parse error: syntax error, unexpected T_VARIABLE".
Please supply more info.
 [2005-03-20 18:01 UTC] sniper@php.net
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: Sun Dec 22 10:01:28 2024 UTC