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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 04:01:35 2025 UTC