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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 36 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Wed May 25 23:05:45 2022 UTC