Bug #60090 [Opn->Bgs]: string "<" bug
| From: | laruence@php.net | Date: | Wed, 19 Oct 2011 04:10:17 +0000 |
| Subject: | Bug #60090 [Opn->Bgs]: string "<" bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164423@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60090&edit=1
ID: 60090
Updated by: laruence@php.net
Reported by: karunungan dot odesk at gmail dot com
Summary: string "<" bug
-Status: Open
+Status: Bogus
Type: Bug
Package: Scripting Engine problem
Operating System: Windows 7
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
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
I think you meaning in Browser. you can run the script in CMD to look at the
result
Previous Comments:
------------------------------------------------------------------------
[2011-10-19 03:31:19] karunungan dot odesk at gmail dot com
Description:
------------
Variables containing a less than sign at the start immediately followed by a
character does not evaluate (nothing is returned). If the character is followed by
other characters such as <br /> or \n, the correct string is returned.
Test script:
---------------
$foobar = "<A";
echo $foobar; //does not work!
(string) $foobar = "<A";
echo "$foobar"; //does not work!
function foobar(){
$foobar = "<A";
return $foobar;
}
echo foobar(); //does not work!
$foobar = "<A<br />";
echo $foobar; //works!
$foobar = "<A\n";
echo $foobar; //works!
Expected result:
----------------
<A
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60090&edit=1