PHP 4.0 Bug #6837 Updated: Incorrect behaviour of echo with trans-sid enabled end session_start()

From: Date: Sat, 30 Sep 2000 06:19:48 +0000
Subject: PHP 4.0 Bug #6837 Updated: Incorrect behaviour of echo with trans-sid enabled end session_start()
Groups: php.dev 
Request: Send a blank email to php-dev+get-33899@lists.php.net to get a copy of this message
ID: 6837 Updated by: sas Reported By: keks@rbcmail.ru Status: Closed Bug Type: *Session related Assigned To: Comments: I've added single quotes support a couple of days ago. Please try again. Previous Comments: --------------------------------------------------------------------------- [2000-09-21 18:36:29] keks@rbcmail.ru Also, parser add double quotes around any HTML elements, not only links. For example echo "<input type=text value='$myvalue'>" produces output like this <input type="text" value="'value'"> --------------------------------------------------------------------------- [2000-09-21 18:32:06] keks@rbcmail.ru This small example <? session_start(); echo "<html><body>"; $href="bugs.php.net"; echo "<a href='$href'>bugs.php.net</a>"; echo "</body></html>"; exit; ?> produces a bit unexpected output. Notice additional double quotes aroud link string. I think it's the problem of URL parser used while --enable-trans-sid, since without session_start() its output is normal. *** START OF OUTPUT *** <html><body> <a href="'bugs.php.net'? PHPSESSID=5e3faeaf95fd83a2df2288b804a55604">bugs.php.net </a> </body></html> *** END OF OUTPUT *** PHP was compiled with following options Apache is 1.3.12 --with-gd --with-calendar --enable-track-vars --enable-trans-sid --with-config-file-path=/etc --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6837

« previous php.dev (#33899) next »