ID: 40093 User updated by: dan dot marra at gmail dot com Reported By: dan dot marra at gmail dot com Status: Open Bug Type: Unknown/Other Function Operating System: linux (fedora core 6) PHP Version: 5.2.0 New Comment:
i'm sorry, this is the ACTUAL reproduceable code: <?PHP echo htmlentities(" this will work \"as expected\"", ENT_QUOTES); echo htmlentities(" this will 'break'", ENT_QUOTES); ?> Previous Comments: ------------------------------------------------------------------------ [2007-01-10 17:55:14] dan dot marra at gmail dot com 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 this bug report at http://bugs.php.net/?id=40093&edit=1