|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-04-04 04:07 UTC] matt dot parrett at gmail dot com
Description: ------------ php 5.2.1 compiled with: './configure' '--prefix=/usr/local/php-5.2.1' '--with-apxs2=/usr/local/apache2.2/bin/apxs' '--with-mysql' '--with-mysqli' '--with-gd' '--with-pear' '--with-zlib-dir=/usr' '--with-mysql=/opt' '--with-jpeg-dir=/opt' '--with-png-dir=/opt' <?php phpinfo(); ?> seems to give truncated output when viewed in a browser. Using wget to retrieve the page gives the expected result. php -i gives proper output. It seems like PHP or our configuration of PHP is doing something wacky with the headers. Not really sure what to look at though. I've configured everything by the book, and have used the same configuration on another server without trouble. Additionally, IE attempts to display the page, then has second thoughts and says 'page cannot be displayed'. We are having similar weird issues with some of our scripts, and found that the simple phpinfo page does the same thing. This is a brand new server with fresh compiles of Apache 2.2 and PHP 5.2.1 - I've tested with PHP 4.4.4 (similar compilation options) and get the same result. Reproduce code: --------------- <?php phpinfo(); ?> Expected result: ---------------- Full PHPinfo with PHP Variables section at the bottom. Actual result: -------------- Output ends prior to HTTP Headers Information. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 22:00:02 2025 UTC |
Here's another tidbit that may be helpful. I tried a simple test that works flawlessly on another server that we have. On the troublemaker, PHP seems to start having trouble at about 16Kb of output. Just like with phpinfo and our main script, this test works fine as long as you access it using wget or the CLI. <?php for($i=0;$i<1000;$i++) { echo 'start row:'.$i; for($j=0;$j<9;$j++) { echo 'cell:'.$j; } echo 'end row:'.$i; } ?> I'd like to rule this out as being a bug. There's a good chance it's not, but I can't seem to prove it either way.