Bug #10495 Updated: Crash with ob_start();

From: Date: Sun, 29 Apr 2001 15:25:01 +0000
Subject: Bug #10495 Updated: Crash with ob_start();
Groups: php.dev 
Request: Send a blank email to php-dev+get-52917@lists.php.net to get a copy of this message
ID: 10495 Updated by: andi Reported By: vvtk@stealthcomp.com Status: Open Bug Type: Reproduceable crash PHP Version: 4.0 Latest CVS (25/04/2001) Assigned To: Comments: Can you please supply the smallest possible reproducing script and post it. Also please try today's CVS updating the PHP, TSRM and Zend CVS trees. Please compile with --enable-debug. Previous Comments: --------------------------------------------------------------------------- [2001-04-25 14:10:08] vvtk@stealthcomp.com 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 = "x1fx8bx08x00x00x00x00x00"; $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"); ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10495&edit=2

« previous php.dev (#52917) next »