Bug #63849 [Opn->Nab]: echo HTML breaking string

From: Date: Mon, 24 Dec 2012 14:33:19 +0000
Subject: Bug #63849 [Opn->Nab]: echo HTML breaking string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175596@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63849&edit=1 ID: 63849 Updated by: laruence@php.net Reported by: yoav at weitzman dot co dot il Summary: echo HTML breaking string -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: linux PHP Version: Irrelevant 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 Previous Comments: ------------------------------------------------------------------------ [2012-12-24 14:33:03] laruence@php.net echo "select * from table where Data &lt; NOW()" <- htmlspecialchars() ------------------------------------------------------------------------ [2012-12-24 14:28:11] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63849&edit=1

« previous php.bugs (#175596) next »