|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-17 02:41 UTC] tech163 at fusionswift dot com
Description: ------------ This error began appearing a few days ago after I ran yum update, and recompiled PHP, using './configure' '--prefix=/home/arch120113' '--with-config-file- path=/home/arch120112/php' '--with-mysqli=mysqlnd' '--with-mysql=mysqlnd' '--with- pdo-mysql=mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '-- enable-mbstring' '--enable-sockets' '--with-bz2' '--with-curl' '--with-gd' '-- enable-gd-native-ttf' '--with-jpeg-dir=/opt' '--with-png-dir=/opt' '--with- gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '-- with-openssl' '--with-zlib' '--enable-zip' '--enable-fpm' '--with-freetype- dir=/usr/include/freetype2/' Now, when I use file_get_contents() on a large file (300KB), not the entire thing appears. Test script: --------------- https://www.cheatswhiz.com/info.php <?php <?php $expires_offset = 31536000; header('Content-Type: application/x-javascript; charset=UTF-8'); header('Vary: Accept-Encoding'); // Handle proxies header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); header("Cache-Control: public, max-age=$expires_offset"); echo file_get_contents('wp-includes/js/tinymce/wp-tinymce.js'); ?> File it's reading from is https://www.cheatswhiz.com/wp-includes/js/tinymce/wp-tinymce.js Expected result: ---------------- The entire content of the file is read. Actual result: -------------- Only part of the content is read PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
<?php <?php $expires_offset = 31536000; header('Content-Type: application/x-javascript; charset=UTF-8'); header('Vary: Accept-Encoding'); // Handle proxies header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); header("Cache-Control: public, max-age=$expires_offset"); echo file_get_contents('wp-includes/js/tinymce/wp-tinymce.js'); echo 'test'; ?> where the file, wp-includes/js/tinymce/wp-tinymce.js, contains https://www.cheatswhiz.com/wp-includes/js/tinymce/wp-tinymce.js. When that code is excuted, only portions of https://www.cheatswhiz.com/wp- includes/js/tinymce/wp-tinymce.js is read, Also, the echo 'test'; after the file_get_contents is not executed.