Req #8108 [Ana->Wfx]: implement trans-sid as output handler
| From: | yohgaki@php.net | Date: | Sat, 31 Mar 2012 06:35:52 +0000 |
| Subject: | Req #8108 [Ana->Wfx]: implement trans-sid as output handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169082@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=8108&edit=1
ID: 8108
Updated by: yohgaki@php.net
Reported by: phpbug at jbirch dot com
Summary: implement trans-sid as output handler
-Status: Analyzed
+Status: Wont fix
Type: Feature/Change Request
Package: Session related
Operating System: Free BSD 2.2.7
PHP Version: 4.0.3pl1
Block user comment: N
Private report: N
New Comment:
Trans SID is becoming as a legacy feature now. I suppose nobody is going to
implement this.
Previous Comments:
------------------------------------------------------------------------
[2001-02-19 23:50:17] andre@php.net
a) the ob_filter() part is not needed, because output
buffers are nestable
b) would be fine to have ob_transsid or similar, much more
flexible
moving to feature requests
------------------------------------------------------------------------
[2000-12-11 11:42:48] phpbug at jbirch dot com
I've been thinking about this a bit more. I'm not sure if adding the ability to obtain
the correct length of the buffered output in this case is more important than retailing the ability
to save a non-user-specific version of the output.
"Fixing" my problem would mean that a page caching system that writes plain .html files
from database using the ob_ functions would be broken.
Would it be possible to add a function that performs the same function as trans-sid, but at a script
level? With this in place, I could turn off trans-sid and manipulate the output buffer directly.
A generic ob_filter() facility could come in handy for other things too, such as highlighing search
terms in a page request. Especially if it had a switch to filter the HTML, the marked up text, or
both.
------------------------------------------------------------------------
[2000-12-11 09:45:54] stas@php.net
Actually, I guess trans-sid should be implemented as
output-buffering filter, just as gz-compression. Otherwise
what you are trying to do would never work.
------------------------------------------------------------------------
[2000-12-05 02:04:24] phpbug at jbirch dot com
I've got php4.3.3pl1 compiled as a CGI with --enable-trans-sid.
I currently use the ob_length function to send a Content-Length header with my semi-static pages to
enhance their cacheability. As soon as I enabled trans-sid with cookies disabled this behaviour
broke, because ob_length appears to be calculated before the SID is applied to the page. My pages
get truncated by browsers that accept the content-length header (all modern browsers).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=8108&edit=1