#48565 [NoF->Opn]: Transparent session ID occasionally not added
ID: 48565 User updated by: bill at rubgrp dot com Reported By: bill at rubgrp dot com -Status: No Feedback +Status: Open Bug Type: Session related Operating System: Linux (Fedora 11) PHP Version: 5.2.9 New Comment: Sorry for the delay - chaos intervened. The 5.3 snapshot works on Fedora 11. I've also found that the 5.2.9 version works on at least one other platform (Mac), so perhaps it is an issue with something specific Fedora is doing in their version. Previous Comments: [2009-07-02 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2009-06-24 11:22:31] j...@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-06-15 22:45:57] bill at rubgrp dot com Description: Sometimes when adding a session ID to a URL, it is not added after existing parameters, but rather iafter the closing quote for the URL. For example, an anchor tag of '' would be rewritten as '' instead of ''. This appears to be similar to the issue reported in bug #3411. It appears to be buffer related, since adding or subtracting a few characters from earlier in the page can introduce or eliminate the error. As mentioned in #3411, turning on output buffering eliminates the problem. This seemed to work correctly through 5.2.5, but has not worked since 5.2.6. Reproduce code: --- Since it appears to be dependent on the number of bytes in the buffer, it can't be reproduced in 20 lines. Here is a link to a page that generated the examples: http://www.rubgrp.com/~bill/sample.php Expected result: 06 ...snip... 08 Actual result: -- 06 ...snip... 07 ..snip... 08 (The first and third are correct; in the second line the session ID is added after the closing quote on the href value.) -- Edit this bug report at http://bugs.php.net/?id=48565&edit=1
#48565 [NEW]: Transparent session ID occasionally not added
From: bill at rubgrp dot com Operating system: Linux (Fedora 11) PHP version: 5.2.9 PHP Bug Type: Session related Bug description: Transparent session ID occasionally not added Description: Sometimes when adding a session ID to a URL, it is not added after existing parameters, but rather iafter the closing quote for the URL. For example, an anchor tag of '' would be rewritten as '' instead of ''. This appears to be similar to the issue reported in bug #3411. It appears to be buffer related, since adding or subtracting a few characters from earlier in the page can introduce or eliminate the error. As mentioned in #3411, turning on output buffering eliminates the problem. This seemed to work correctly through 5.2.5, but has not worked since 5.2.6. Reproduce code: --- Since it appears to be dependent on the number of bytes in the buffer, it can't be reproduced in 20 lines. Here is a link to a page that generated the examples: http://www.rubgrp.com/~bill/sample.php Expected result: 06 ...snip... 08 Actual result: -- 06 ...snip... 07 ..snip... 08 (The first and third are correct; in the second line the session ID is added after the closing quote on the href value.) -- Edit bug report at http://bugs.php.net/?id=48565&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48565&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48565&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48565&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48565&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48565&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48565&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48565&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48565&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48565&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48565&r=support Expected behavior: http://bugs.php.net/fix.php?id=48565&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48565&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48565&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48565&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48565&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48565&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48565&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48565&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48565&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48565&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48565&r=mysqlcfg