|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10477 ob_start('function') is called before trans-sid is applied, not after
Submitted: 2001-04-24 14:03 UTC Modified: 2001-09-09 06:16 UTC
From: lee at mediawaveonline dot com Assigned:
Status: Closed Package: Output Control
PHP Version: 4.0.4pl1 OS: linux 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
42 - 34 = ?
Subscribe to this entry?

 [2001-04-24 14:03 UTC] lee at mediawaveonline dot com

	if (isset($PATH_INFO))
		$var = explode('/', $PATH_INFO);
		for($c = 1; $c < count($var); $c += 2)
			$$var[$c]	= $var[$c + 1];
			$HTTP_GET_VARS[$var[$c]] = $var[$c + 1];

	function fix_session($output)
		global $SID;

		$o_sid = '?'. $SID;
		$n_sid = '/'. str_replace('=', '/', $SID);

		$output = substr_count($output, $o_sid) .'<br>'. str_replace($o_sid, $n_sid, $output);
		return $output;



I want to convert.


this code will convert hardcoded SID links but not trans-sid. this must be caused because fix_session() is being called 'before' trans-sid is applied, it should be called after. no ? what is strange is that if I use ob_start() to gzip my content trans-sid is astill applied, but I dont know how this is done to compressed code.... I will have to check this.

Chris Lee


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 06:16 UTC]
Fixed in CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 21:01:27 2024 UTC