|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-10-15 08:35 UTC] christian at koch dot net
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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 18:00:01 2025 UTC |
read a file into a string, the string has a different content as the file. try this <?php var_dump(file_get_contents("testfile.txt")); ?> where textfile.txt contains: begin <blafasel begin="<%testtag name="abc"%>" soso stop> bla="fasel" begin="<%testtag name="abc"%>" soso stop blafasel begin="<%testtag name="abc"%>" soso stop blafasel begin="<%testtag name="abc"%>" soso stop blafasel begin="<%testtag name="abc"%>" soso stop blafasel begin="<%testtag name="abc"%>" soso stop <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"%>"> blafasel begin="<%testtag name="abc"%>" soso stop blafasel begin="<%testtag name="abc"%>" soso stop end the differences occurs at line 2(chr 37) and line 10(chr 62). both are " (doublequotes) the error occurs too if I use the fread() function. Hope this is enough info I've made an upgrade to 5.02. the still occurs Christian