|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-20 12:29 UTC] mikesul@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Description: ------------ When using sftp via fread(), anything between php tags is removed from the output. Reproduce code: --------------- test.php: one <? echo 'two'; ?> three $stream = fopen("ssh2.sftp://$sftp$file", 'r'); echo filesize("ssh2.sftp://$sftp$file"); //CORRECT. echo fread($stream, filesize("ssh2.sftp://$sftp$file")); // prints "onethree" Expected result: ---------------- The entire contents of the file. Actual result: -------------- Contents of the file without anything in between <? and ?>