Bug #10495: Crash with ob_start();

From: Date: Wed, 25 Apr 2001 18:10:09 +0000
Subject: Bug #10495: Crash with ob_start();
Groups: php.dev 
Request: Send a blank email to php-dev+get-52419@lists.php.net to get a copy of this message
From: vvtk@stealthcomp.com 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

« previous php.dev (#52419) next »