ID: 26646
Updated by: [EMAIL PROTECTED]
Reported By: eero at ping-viini dot org
-Status: Feedback
+Status: No Feedback
Bug Type: Output Control
Operating System: Linux 2.4,2.6,2.0
PHP Version: 4.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Too old PHP version too.
Previous Comments:
------------------------------------------------------------------------
[2003-12-17 11:19:28] [EMAIL PROTECTED]
Do you have trans_sid enabled?
------------------------------------------------------------------------
[2003-12-17 06:49:18] eero at ping-viini dot org
Description:
------------
Output control fails.
Reproduce code:
---------------
<?php
ob_start();
session_name("session_name");
session_start();
$bar = "foo";
session_register("bar");
$bar = "fooo";
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Bug</title>
</head>
<body>
<a href="bug.php?attribute=not_used">Link</a>
<form>
';
ob_start();
echo '
<a href="bug.php?attribute=not_used">Link</a>
abcdefghijklmnopqrstu<br/>
abcdefghijklmnopqrstu<br/>
<input type="text" size="30"
value="texttexttexttexttexttexttexttexttext
texttexttext"/><br/>
1234567890<br/>
1234567890<br/>
';
ob_flush();
echo '
</form>
</body>
</html>
';
$size=ob_get_length();
header("Content-Length: ".$size); // Now Content-Length does not
match.
ob_end_flush();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26646&edit=1