php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60090 string "<" bug
Submitted: 2011-10-19 03:31 UTC Modified: 2011-10-20 04:04 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: systemcore0v34c10ck-iheartspam at yahoo dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.8 OS: Windows 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: systemcore0v34c10ck-iheartspam at yahoo dot com
New email:
PHP Version: OS:

 

 [2011-10-19 03:31 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-19 04:10 UTC] laruence@php.net
-Status: Open +Status: Bogus
 [2011-10-19 04:10 UTC] 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-20 04:04 UTC] systemcore0v34c10ck-iheartspam at yahoo dot com
-: karunungan.odesk@gmail.com +: systemcore0v34c10ck-iheartspam at yahoo dot com
 [2011-10-20 04:04 UTC] systemcore0v34c10ck-iheartspam at yahoo dot com
Please delete this report, its not a bug in PHP but on Google Chrome. Output is 
fine on view source for Firefox.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 18:01:32 2025 UTC