ID: 34701 User updated by: php dot net at callerid dot de Reported By: php dot net at callerid dot de Status: Bogus Bug Type: Session related Operating System: linux, windows PHP Version: 5CVS-2005-10-01 (snap) New Comment:
All right. But if there's no bug in the handling, tell me (without parsing) what this script will put out. <?php ob_start(); session_start(); echo "Something\n"; echo "<a href=\"index.html\">Text</a>"; $var = ob_get_contents(); ob_clean(); echo $var; ?> (remember: session.use_trans_sid is set) Nevertheless, by using session_start while session.use_trans_sid is set and output buffer at the same time the behaviour is strange and should be redesigned. The function-based output buffer must be seperated from internal usage for functionality like url_rewriting. This could definitely not be expected nor found in the docs. Previous Comments: ------------------------------------------------------------------------ [2005-10-01 19:06:30] [EMAIL PROTECTED] No PHP problem -> bogus ------------------------------------------------------------------------ [2005-10-01 18:59:01] php dot net at callerid dot de Closed. ------------------------------------------------------------------------ [2005-10-01 18:58:21] php dot net at callerid dot de OK. I found it out myself. Because of the ob_end... the output buffer, that url_rewriting is obviously using, is stopped. That is also an unexpected behaviour and should be explained in the documentation of the session-functions. I will post a note. Sorry about this bug-report. But the answer wasn't very helpful. ------------------------------------------------------------------------ [2005-10-01 18:00:16] php dot net at callerid dot de Sorry. It isn't expected, why? ------------------------------------------------------------------------ [2005-10-01 16:58:16] [EMAIL PROTECTED] It's not expected. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34701 -- Edit this bug report at http://bugs.php.net/?id=34701&edit=1