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
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: 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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 05:01:35 2025 UTC