#22603 [NEW]: Can't set content-length

From: Date: Sat, 08 Mar 2003 09:26:25 +0000
Subject: #22603 [NEW]: Can't set content-length
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35099@lists.php.net to get a copy of this message
From: mcmunn at mcmunn dot com Operating system: FreeBSD 4.7 PHP version: 4.3.0 PHP Bug Type: Unknown/Other Function Bug description: Can't set content-length I can't set the content-length via the header() function. I am setting the content-type and other header fields, this is making me bonkers. Even the most simple sample: <? ob_start(); ?> Put HTML tags. <? $size=ob_get_length(); header("Content-Length: $size"); ob_end_flush(); ?> will fail. I have apache 2.0.43 and PHP 4.3.0 Any help is much appreciated. -- Edit bug report at http://bugs.php.net/?id=22603&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22603&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22603&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22603&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22603&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22603&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22603&r=support Expected behavior: http://bugs.php.net/fix.php?id=22603&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22603&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22603&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22603&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22603&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22603&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22603&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22603&r=gnused

« previous php.bugs (#35099) next »