From: [EMAIL PROTECTED] Operating system: RedHat 6.2 PHP version: 4.0 Latest CVS (25/04/2001) PHP Bug Type: Reproduceable crash Bug description: Crash with ob_start(); Segmentation fault with next script <? function my_h($str){ global $HTTP_ACCEPT_ENCODING,$NO_COMPRESS; $size = strlen($contents); $crc32 = crc32($contents); Header("Etag: VT".$crc32); $size = strlen($contents); $crc32 = crc32($contents); // compressed output: set header $ENCODING = "gzip"; header("Content-Encoding: $ENCODING"); $ret = "\x1f\x8b\x08\x00\x00\x00\x00\x00"; $ret .= substr($gzcontent, 0, strlen($gzcontent) - 4); $ret .= pack('V',$crc32); $ret .= pack('V',$size); return $ret; if ($NO_COMPRESS) {return $str;} return $str.$HTTP_ACCEPT_ENCODING; } function TO_LOGIN(){ echo "Login"; exit; } ob_start("my_h"); phpinfo(); TO_LOGIN("rr"); ?> -- Edit Bug report at: http://bugs.php.net/?id=10495&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]