php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63849 echo HTML breaking string
Submitted: 2012-12-24 14:28 UTC Modified: 2012-12-24 14:33 UTC
From: yoav at weitzman dot co dot il Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yoav at weitzman dot co dot il
New email:
PHP Version: OS:

 

 [2012-12-24 14:28 UTC] yoav at weitzman dot co dot il
Description:
------------
echo (or var_dump) "SELECT * FROM table WHERE `Date`<NOW()";

the part after the 'lower than' ("<NOW...") seems like broken HTML tag and breaks 
the code without any errors.

Test script:
---------------
echo "SELECT * FROM table WHERE `Date`<NOW()";
echo 'DONE'; //this is not printed or everything else afterwords

Expected result:
----------------
I expected to see my string on the screen and the code will still be running

Actual result:
--------------
It's only print "SELECT * FROM table WHERE `Date`" and then the script breaks.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-24 14:33 UTC] laruence@php.net
echo "select * from table where `Data` &lt; NOW()" <- htmlspecialchars()
 [2012-12-24 14:33 UTC] laruence@php.net
-Status: Open +Status: Not a bug
 [2012-12-24 14:33 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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 01:01:32 2024 UTC