#41138 [Opn]: Broken output from PHP scrips (both in mod_php and fastcgi)
| From: | kovyrin at gmail dot com | Date: | Thu, 19 Apr 2007 08:23:34 +0000 |
| Subject: | #41138 [Opn]: Broken output from PHP scrips (both in mod_php and fastcgi) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111676@lists.php.net to get a copy of this message | ||
ID: 41138
User updated by: kovyrin at gmail dot com
Reported By: kovyrin at gmail dot com
Status: Open
Bug Type: Unknown/Other Function
Operating System: Debian Linux 4.0 (2.6.17-2-686)
PHP Version: 5.2.1
New Comment:
Interesting example of this bug: www.trafficvalet.com/tv-access.log -
754204 bytes of access log file.
www.trafficvalet.com/tv-access.log.php - the same file but with php
extension.
1) wget www.trafficvalet.com/tv-access.log - 754204 bytes
2) wget www.trafficvalet.com/tv-access.log - 754204 bytes
3) wget www.trafficvalet.com/tv-access.log.php - 1665418 bytes
4) wget www.trafficvalet.com/tv-access.log.php - 1272050 bytes
5) wget www.trafficvalet.com/tv-access.log.php - 901900 bytes
Try it yourself.
Previous Comments:
------------------------------------------------------------------------
[2007-04-19 08:16:38] kovyrin at gmail dot com
Just tried it with latest snapshot - same results.
------------------------------------------------------------------------
[2007-04-19 08:15:39] kovyrin at gmail dot com
My fault - it does not work from local network :-(
------------------------------------------------------------------------
[2007-04-19 08:07:01] tony2001@php.net
Make sure there are no "smart" firewalls and proxies between that
server and Internet.
If you're saying it works from local net, but doesn't work from
Internet, most likely it has nothing to do with PHP, since PHP does not
care where the client is.
------------------------------------------------------------------------
[2007-04-19 08:04:50] tony2001@php.net
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
Cannot reproduce.
------------------------------------------------------------------------
[2007-04-19 07:57:53] kovyrin at gmail dot com
Description:
------------
On one of our servers working with Debian GNU/Linux 4.0 we're
experiencing really strange behavior of php. Even small php script which
consists of <? phpinfo(); ?> produces defferent result on every
execution.
We've tried to use php as mod_php and as lighttpd+fastcgi, no luck -
output contains binary data (one or many blocks of 0x00 bytes) sometimes
these bytes are sent even before HTTP headers.
We've tried php from debian repositories and 5.2.1 from official web
site - results sometimes are different, but anyways they are not
acceptable.
One major thing about this error - script output should be big enough
and download speed should be not so fast (it works from local network,
but produces these weird results from any workstation in the Internet).
Reproduce code:
---------------
http://www.trafficvalet.com/phpinfo.php - this
is simple script with
<? phpinfo(); ?> inside. If you'll try to refresh page 5-10 times
you'll get that broken result.
If you'll not be able to get such results,
http://www.trafficvalet.com/phpinfo.php.bin -
this is one sample
result.
Expected result:
----------------
phpinfo() output without \0 bytes.
Actual result:
--------------
One or more blocks of zero-bytes in output stream.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41138&edit=1