Using the header function to set the Content-Length doesn't works with php 4.3.11 ... I'm sure that it will not work in 5.0.4 too, as a friend of mine tested in her gentoo server. Reproducible: Always Steps to Reproduce: 1.Create a php file with header("Content-Length: 100"); 2.lynx --head --dump http://pathtofile.php 3.The content-length will not appear at the output
Just an fyi: this has been reported upstream (http://bugs.php.net/bug.php?id=32906) and got marked as bogus. What Rasmus says in the bug report is partly true, though it has been a long time since I have seen this, and it's no way the norm (at least, from checking ~20 dynamic/php-based websites, they all report a correct 'Content-Length' header, of course, for many, their configuration/set-up is unknown to myself). As an aside, I can't reproduce this with Apache 2.0.54-r4 and mod_php-5.0.4 here ..
Hi, Not quite sure what you expect us to do about this. UPSTREAM has marked this as a bogus bug. Best regards, Stu