#32608 [NEW]: html_entity_decode converts single quotes even if ENT_NOQUOTES is given
| From: | ladislav dot prosek at matfyz dot cz | Date: | Wed, 06 Apr 2005 14:32:11 +0000 |
| Subject: | #32608 [NEW]: html_entity_decode converts single quotes even if ENT_NOQUOTES is given | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76441@lists.php.net to get a copy of this message | ||
From: ladislav dot prosek at matfyz dot cz
Operating system: Windows XP SP2
PHP version: 5.0.4
PHP Bug Type: Strings related
Bug description: html_entity_decode converts single quotes even if ENT_NOQUOTES is given
Description:
------------
html_entity_decode seems to convert single quotes (' and ')
regardless of the quote_style parameter.
Reproduce code:
---------------
echo html_entity_decode("'", ENT_NOQUOTES);
Expected result:
----------------
'
Actual result:
--------------
'
--
Edit bug report at http://bugs.php.net/?id=32608&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32608&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32608&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32608&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32608&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32608&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32608&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32608&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32608&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32608&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32608&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32608&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32608&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32608&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32608&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32608&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32608&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32608&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32608&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32608&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32608&r=mysqlcfg