php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Sec Bug #53732 file_get_contents shows PHP Comments
Submitted: 2011-01-12 23:01 UTC Modified: 2011-03-24 13:03 UTC
From: mattias at fjellvang dot dk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.5 OS: Linux (i guess - i use one.com)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mattias at fjellvang dot dk
New email:
PHP Version: OS:

 

 [2011-01-12 23:01 UTC] mattias at fjellvang dot dk
Description:
------------
Hi there, i was testing out some scripts, and found out, that if i did file_get_contents on lets say file: test.php and test .php file looks like this:

<?php
// testing
// this is just a test
// security breach
?>
bla bla bla text

my test.php file would output the comments // as normal text, eg.:

testing
this is just a test
secuirty breach
bla bla bla text

HMMM? :-) Just wanted to tell


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-13 01:35 UTC] felipe@php.net
-Summary: fiel_get_contents shows PHP Comments +Summary: file_get_contents shows PHP Comments
 [2011-02-19 20:37 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2011-02-19 20:37 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

file_get_contents() doesn't interpret the contents
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 14 07:01:27 2024 UTC