From: dan dot marra at gmail dot com Operating system: linux (fedora core 6) PHP version: 5.2.0 PHP Bug Type: Unknown/Other Function Bug description: htmlentities ENT_QUOTES behaves like ENT_COMPAT
Description: ------------ The summary prtty much explains it best. Here is the configure line: './configure' '--with-apxs2=/usr/sbin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--enable-gd-native-ttf' '--enable-wddx' '--with-zip' '--with-zlib' '--with-config-file-path=/etc' Reproduce code: --------------- <?PHP echo htmlentities(" this will work \"as expected\""); echo htmlentities(" this will 'break'"); ?> Expected result: ---------------- (note, this is while viewing source of the page) this will work "as expected" this will 'break' Actual result: -------------- this will work "as expected" this will 'break' -- Edit bug report at http://bugs.php.net/?id=40093&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40093&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40093&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40093&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40093&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40093&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40093&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40093&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40093&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40093&r=support Expected behavior: http://bugs.php.net/fix.php?id=40093&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40093&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40093&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40093&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40093&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40093&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40093&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40093&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40093&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40093&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40093&r=mysqlcfg