note 103486 added to function.htmlentities
| From: | robin at robinwinslow dot co dot uk | Date: | Fri, 15 Apr 2011 15:14:01 +0000 |
| Subject: | note 103486 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178882@lists.php.net to get a copy of this message | ||
htmlentities seems to have changed at some point between version 5.1.6 and 5.3.3, such that it now
returns an empty string for anything containing a pound sign:
$ php -v
PHP 5.1.6 (cli) (built: May 22 2008 09:08:44)
$ php -r "echo htmlentities('£hello', null, 'utf-8');"
£hello
$
$ php -v
PHP 5.3.3 (cli) (built: Aug 19 2010 12:07:49)
$ php -r "echo htmlentities('£hello', null, 'utf-8');"
$
(Returns an empty string the second time)
Just a heads up.
----
Server IP: 69.147.83.197
Probable Submitter: 209.251.196.62
----
Manual Page -- http://www.php.net/manual/en/function.htmlentities.php
Edit -- https://master.php.net/note/edit/103486
Del: integrated -- https://master.php.net/note/delete/103486/integrated
Del: useless -- https://master.php.net/note/delete/103486/useless
Del: bad code -- https://master.php.net/note/delete/103486/bad+code
Del: spam -- https://master.php.net/note/delete/103486/spam
Del: non-english -- https://master.php.net/note/delete/103486/non-english
Del: in docs -- https://master.php.net/note/delete/103486/in+docs
Del: other reasons-- https://master.php.net/note/delete/103486
Reject -- https://master.php.net/note/reject/103486
Search -- https://master.php.net/manage/user-notes.php