Edit report at https://bugs.php.net/bug.php?id=63849&edit=1
ID: 63849 Updated by: larue...@php.net Reported by: yoav at weitzman dot co dot il Summary: echo HTML breaking string Status: Open Type: Bug Package: *General Issues Operating System: linux PHP Version: Irrelevant Block user comment: N Private report: N New Comment: echo "select * from table where `Data` < NOW()" <- htmlspecialchars() Previous Comments: ------------------------------------------------------------------------ [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