ID: 29584 Comment by: php-is-cool at gmx dot net Reported By: mail dot spam at gmx dot net Status: Bogus Bug Type: Session related Operating System: Linux PHP Version: 4.3.7 New Comment:
Sorry for creating a new report but the author of this report added a comment 10 days ago and there's no reply so I thought you don't answer to reports being bogus. Here's my question: ------------- if I send output to the browser using gzcompress the session-id does not get added. I know the reason for this: gzcompress returns a compressed binary string that can't be searched for relative urls. But i don't know the reason why gzcompress does not invoke the url-rewriting before actually starting with compressing the data? Wouldn't that be a good thing? thanks in advance ------------- Previous Comments: ------------------------------------------------------------------------ [2004-08-09 16:18:03] mail dot spam at gmx dot net i see no sense in having the user to choose whether to have the session-id added or compressing the output sent to the browser and i wasn't able to find this explained in the documentation. would you please be so kind and point me to the right direction? why does gzencode not invoke the transparent adding of the session-id? thanks in advance ------------------------------------------------------------------------ [2004-08-09 13:41:36] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php If you compress it, we can\'t match on links anymore. ------------------------------------------------------------------------ [2004-08-09 13:37:49] mail dot spam at gmx dot net Description: ------------ if i use gzencode() to compress the output being sent to the user's browser there get's no session-id added to links. use_only_cookies is set to off and use_trans_sid is set to On. Reproduce code: --------------- working: <?php session_start(); echo '<a href="dummy.php">Test</a>'; ?> _not_ working: <?php session_start(); header('Content-Encoding: gzip'); echo gzencode('<a href="dummy.php">Test</a>'); ?> Expected result: ---------------- i assumed to see both links with session-id added. Actual result: -------------- working: <a href="dummy.php?PHPSESSID=074c2a090a20e5bb3d59948a39da5e87">Test</a> _not_ working: <a href="dummy.php">Test</a> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29584&edit=1
