From:             kovyrin at gmail dot com
Operating system: Debian Linux 4.0 (2.6.17-2-686)
PHP version:      5.2.1
PHP Bug Type:     Unknown/Other Function
Bug description:  Broken output from PHP scrips (both in mod_php and fastcgi)

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 bug report at http://bugs.php.net/?id=41138&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41138&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41138&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41138&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41138&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41138&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41138&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41138&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41138&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41138&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41138&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41138&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41138&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41138&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41138&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41138&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41138&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41138&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41138&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41138&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41138&r=mysqlcfg

Reply via email to