|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-23 21:13 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Feb 05 21:00:02 2026 UTC |
Description: ------------ i've got file where is written e.g. 16 and filesize is 2 B i gave readfile("x.txt") to variable, name is not important, and then when i called variable e.g. echo $read it showed me 162 . it means that it wrote the file and after it is written filesize. so i can't use readfile in variable Reproduce code: --------------- $read = readfile("x.txt"); echo $read; Expected result: ---------------- x.txt = 16 filesize = 2 $read = readfile("x.txt"); echo $read; /write 16 Actual result: -------------- x.txt = 16 filesize = 2 $read = readfile("x.txt"); echo $read; /is writting 162