Bug #63849 [Opn]: echo HTML breaking string

From: Date: Mon, 24 Dec 2012 14:33:03 +0000
Subject: Bug #63849 [Opn]: echo HTML breaking string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-175595@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 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 &lt; 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

« previous php.bugs (#175595) next »