ID:               40989
 Updated by:       [EMAIL PROTECTED]
 Reported By:      matt dot parrett at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: RHEL-latest
 PHP Version:      5.2.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Make sure you disabled all zend_extensions and try the snapshot above.


Previous Comments:
------------------------------------------------------------------------

[2007-04-04 15:30:57] matt dot parrett at gmail dot com

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.

------------------------------------------------------------------------

[2007-04-04 15:15:13] matt dot parrett at gmail dot com

I've tried all the browsers I have access to. Each seems to break
during phpinfo() in it's own unique way.

In Firefox 2.0.0.3, the output of phpinfo is truncated when viewing
source. The output stops after SCRIPT_FILENAME. There is a closing TD
and an opening TD tag following SCRIPT_FILENAME. 

In Opera 9.10, something similar happens, although in a slightly
different spot (immediately after GATEWAY_INTERFACE)

--- 

Regarding the script we developed (that generates about 1000 html rows
with 8 columns) seems to go weird somewhere after 6,000 lines of output.
When viewing source, I see <??????????????????????????????????? inserted
in a 'random' spot. I also experienced this using wget, but currently
cannot seem to reproduce that behavior. Currently, the output just stops
-- but only when using a browser. wget retrieves the entire thing just
fine. The one time I observed this, the 300kb html file was bloated to
6MB and contained a huge middle section of <????????

Could this have something to do with the interplay of the browser and
our php distribution or configuration? We use output buffering quite
extensively... 

Thanks. Please let me know if you need anything else.

------------------------------------------------------------------------

[2007-04-04 08:17:40] [EMAIL PROTECTED]

Use "View source" to see what exactly you got from the server.
Did you try a working browser instead of IE?

------------------------------------------------------------------------

[2007-04-04 04:07:26] 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. 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40989&edit=1

Reply via email to