Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
--TEST-- File stream EOF behavior --SKIPIF-- --FILE-- getEntry("file1.txt")->getStream(); echoeof($stream); var_dump(fread($stream, 18)); echoeof($stream); var_dump(fread($stream, 1)); echoeof($stream); echo "\n* First fread is given size - 1:\n"; $stream = $a->getEntry("file1.txt")->getStream(); echoeof($stream); var_dump(fread($stream, 17)); echoeof($stream); var_dump(fread($stream, 1)); echoeof($stream); var_dump(fread($stream, 1)); echoeof($stream); echo "\n* First fread is given size + 1:\n"; $stream = $a->getEntry("file1.txt")->getStream(); echoeof($stream); var_dump(fread($stream, 19)); echoeof($stream); echo "\n* Read is aligned with dictionary, buffer and file size:\n"; $stream = $a2->getEntry("4mb.txt")->getStream(); echoeof($stream); var_dump(strlen(fread($stream, 4194304))); echoeof($stream); var_dump(strlen(fread($stream, 1))); echoeof($stream); echo "\n* Read is dictionary, buffer and file size - 1:\n"; $stream = $a2->getEntry("4mb.txt")->getStream(); echoeof($stream); var_dump(strlen(fread($stream, 4194303))); echoeof($stream); var_dump(strlen(fread($stream, 1))); echoeof($stream); var_dump(strlen(fread($stream, 1))); echoeof($stream); echo "\n* Read is dictionary, buffer and file size + 1:\n"; $stream = $a2->getEntry("4mb.txt")->getStream(); echoeof($stream); var_dump(strlen(fread($stream, 4194305))); echoeof($stream); echo "\n"; echo "Done.\n"; --EXPECTF-- * First fread is given file size: Not at eof string(18) "contents of file 1" Not at eof string(0) "" At eof * First fread is given size - 1: Not at eof string(17) "contents of file " Not at eof string(1) "1" Not at eof string(0) "" At eof * First fread is given size + 1: Not at eof string(18) "contents of file 1" At eof * Read is aligned with dictionary, buffer and file size: Not at eof int(4194304) Not at eof int(0) At eof * Read is dictionary, buffer and file size - 1: Not at eof int(4194303) Not at eof int(1) Not at eof int(0) At eof * Read is dictionary, buffer and file size + 1: Not at eof int(4194304) At eof Done.