Bug #60090 [Bgs]: string "<" bug
| From: | systemcore0v34c10ck-iheartspam at yahoo dot com | Date: | Thu, 20 Oct 2011 04:04:13 +0000 |
| Subject: | Bug #60090 [Bgs]: string "<" bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164456@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
User updated by: systemcore0v34c10ck-iheartspam at yahoo dot com
Reported by: systemcore0v34c10ck-iheartspam at yahoo dot com
Summary: string "<" bug
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:
Please delete this report, its not a bug in PHP but on Google Chrome. Output is
fine on view source for Firefox.
Previous Comments:
------------------------------------------------------------------------
[2011-10-19 04:10:17] laruence@php.net
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
------------------------------------------------------------------------
[2011-10-19 03:31:19] systemcore0v34c10ck-iheartspam at yahoo 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