php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12299 Opening a new session truncates the html output
Submitted: 2001-07-21 12:16 UTC Modified: 2001-08-20 12:17 UTC
From: flatline at mail dot tvnet dot hu Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Debian Potato 2.2.19
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: flatline at mail dot tvnet dot hu
New email:
PHP Version: OS:

 

 [2001-07-21 12:16 UTC] flatline at mail dot tvnet dot hu
CODE SNIPPET:

<?
session_start();

echo '
<html>
<head>
</head>
<body>
some text here
</body>
</html>
';

?>

The output will be the following:
<html>
<head>
</head>
<body>
some text here
</body>
</


It truncates the last </html> tag! When I reload the page, it displays correctly. When I open a new browser (so a new session id must be created), the problem is the same. 

When I close the session with session_destroy before the  output, then it works fine.


CONFIGURE LINE:
'../configure' '--prefix=/usr' '--with-apxs=/usr/bin/apxs' '--with-regex=system' '--with-config-file-path=/etc/php4/apache' '--disable-rpath' '--disable-debug' '--enable-memory-limit' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-bcmath' '--with-bz2' '--enable-ctype' '--with-db2' '--with-ndbm' '--enable-exif' '--enable-filepro' '--enable-ftp' '--with-gettext' '--with-mm' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-pcre-regex=/usr' '--enable-shmop' '--enable-sockets' '--enable-wddx' '--enable-yp' '--with-zlib' '--without-pgsql' '--disable-static' '--with-layout=GNU' '--with-gd=shared,/usr' '--with-jpeg-dir=shared,/usr' '--with-png-dir=shared,/usr' '--with-mhash=shared,/usr' '--with-mysql=shared,/usr'


ADDITIONAL SYSTEM DESCRIPTION:

APACHE 1.3.20

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-22 09:58 UTC] sbergmann@php.net
I was able to reproduce this with the latest CVS of PHP 4.0.7-dev on Win32, built as CGI and the following script:

<?php
session_start();
?>
<html>
  <body>
  </body>
</html>

output:

<html>
  <body>
  </body>
</

 [2001-07-22 17:50 UTC] sas@php.net
That works for me on Linux. Are you using transparent session id propagation and/or output buffers? 

Thanks.
 [2001-08-20 12:17 UTC] sniper@php.net
No feedback. Reopen if you still have this problem
with PHP 4.0.7 (soon to be released) or with latest CVS 
snapshot from http://snaps.php.net/

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 03:01:29 2025 UTC