php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26646 output control fails
Submitted: 2003-12-17 06:49 UTC Modified: 2004-01-01 20:49 UTC
From: eero at ping-viini dot org Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.2 OS: Linux 2.4,2.6,2.0
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-12-17 06:49 UTC] 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();

?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-17 11:19 UTC] iliaa@php.net
Do you have trans_sid enabled?
 [2004-01-01 20:49 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC