#30441 [NEW]: file_get_contents and fread reading less then the file contents

From: Date: Fri, 15 Oct 2004 06:35:31 +0000
Subject: #30441 [NEW]: file_get_contents and fread reading less then the file contents
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67608@lists.php.net to get a copy of this message
From: christian at koch dot net Operating system: Windows XP SP2 PHP version: 5.0.1 PHP Bug Type: Filesystem function related Bug description: file_get_contents and fread reading less then the file contents Description: ------------ <part of the file where problem occurs> <meta name="ef-type" content="template"> <meta name="lower-file" content="<%ATTRIBUTE name="lower-file"%>"> <meta name="keywords" content="<%ATTRIBUTE name="keywords"%>,<%COMPONENT file="/templates/hallo.html"%>"> <meta name="edate" content="<%ATTRIBUTE name="edate"%>"> </part> <result after file_get_contents()> <meta name="ef-type" content="template"> <meta name="lower-file" content="<%ATTRIBUTE name="lower-file%>"> <meta name="keywords" content="<%ATTRIBUTE name="keywords%>,<%COMPONENT file="/templates/hallo.html"%>"> <meta name="edate" content="<%ATTRIBUTE name="edate%>"> </result> I'm missings some (") if there are outer (") then the second inner (") is missing. Christian Reproduce code: --------------- var_dump ( file_get_contents("<anyfilename>") ); Expected result: ---------------- if i read a file i think the file shoud be read completely :-) Actual result: -------------- s.o. -- Edit bug report at http://bugs.php.net/?id=30441&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30441&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30441&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30441&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30441&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30441&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30441&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30441&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30441&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30441&r=support Expected behavior: http://bugs.php.net/fix.php?id=30441&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30441&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30441&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30441&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30441&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30441&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30441&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30441&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30441&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30441&r=mysqlcfg

« previous php.bugs (#67608) next »