#34701 [NEW]: url_rewriter.tags won't work with output buffer and eval
| From: | php dot net at callerid dot de | Date: | Sat, 01 Oct 2005 14:53:54 +0000 |
| Subject: | #34701 [NEW]: url_rewriter.tags won't work with output buffer and eval | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85849@lists.php.net to get a copy of this message | ||
From: php dot net at callerid dot de
Operating system: linux, windows
PHP version: 5CVS-2005-10-01 (snap)
PHP Bug Type: Session related
Bug description: url_rewriter.tags won't work with output buffer and eval
Description:
------------
If an output is produced inside an eval that is captured in an output
buffer, the url will not be supplemented with the session-ID as expected.
This happens only if the session_start is also inside the eval'd code.
The behaviour can be reproduced independently from OS or PHP-Version, if
session.use-trans-sid is set.
Reproduce code:
---------------
<?php
$source = <<<EOQ
session_start();
echo "<a href=\"index.html\">Testlink</a>";
EOQ;
ob_start();
eval($source);
$content = ob_get_contents();
ob_end_clean();
echo $content;
?>
Expected result:
----------------
<a href="index.html?PHPSESSID=.....">Testlink</a>
Actual result:
--------------
<a href="index.html">Testlink</a>
--
Edit bug report at http://bugs.php.net/?id=34701&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34701&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34701&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34701&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34701&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34701&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34701&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34701&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34701&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34701&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34701&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34701&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34701&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34701&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34701&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34701&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34701&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34701&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34701&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34701&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34701&r=mysqlcfg