ID: 11713 Comment by: covered-virtual605 at hotmail dot com Reported By: reaganpr at hotmail dot com Status: Bogus Bug Type: iPlanet related Operating System: Windows NT 4.0 PHP Version: 4.0.6 New Comment:
<a href=http://virtualcovered-pant.da.ru>covered virtual</a> Previous Comments: ------------------------------------------------------------------------ [2002-06-02 19:21:46] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately your version of PHP is too old -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. ------------------------------------------------------------------------ [2002-06-02 16:20:36] [EMAIL PROTECTED] Can you test it with PHP 4.2.1 please? Regards, Kai ------------------------------------------------------------------------ [2001-06-26 18:17:24] reaganpr at hotmail dot com Scenario: The following script: <?php session_start(); $strTest = 'hello'; ?> <a href="<? echo $strTest ?>">click here</a> will cause the script to silently die right after the <a href= This only occurs with the NSAPI version of php running on Windows NT 4.0 (as far as I know), and in one of two instances: 1. client has disabled per-session cookies. 2. this is the first page on the site that the client visits The CGI version has no problems in these two cases (on the same machine). Replacing echo with 'print' or even the short-hand '=' do not seem to remedy the problem. To correct the problem, I can either remove the 'session_start()' call (sacrifices session functionality), or I can replace the tag with: <? print "<a href=\"$strTest\">" ?>click here</a> where the print statement encapsulates the entire opening tag. I can also omit any quotes (single or double) around the attribute: <a href=<? echo $strTest ?>>click here</a> This is not limited to the anchor tag, as I have reproduced it with 'form', etc.. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11713&edit=1
