note 97316 added to function.html-entity-decode
| From: | dexendeVries at osu1 dot php dot net | Date: | Wed, 14 Apr 2010 07:59:23 +0000 |
| Subject: | note 97316 added to function.html-entity-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168218@lists.php.net to get a copy of this message | ||
Summary:
* this function does not preserve NULL
* (because) first argument is always coerced/cast to string
Silvan wrote:
> Passing NULL or FALSE as a string will generate a '500 Internal Server Error' (or
> break the script when inside a function).
(( http://php.net/manual/en/function.html-entity-decode.php#49469
))
For me, no server error, but NULL and FALSE are converted to empty string.
Makes sense, as the first argument is documented to be of type `string'.
But it had a very unfortunate side effect for me :(
That's with PHP 5.2; dunno about earlier versions.
----
Server IP: 82.177.164.100
Probable Submitter: 213.136.233.250
----
Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php
Edit -- https://master.php.net/note/edit/97316
Del: integrated -- https://master.php.net/note/delete/97316/integrated
Del: useless -- https://master.php.net/note/delete/97316/useless
Del: bad code -- https://master.php.net/note/delete/97316/bad+code
Del: spam -- https://master.php.net/note/delete/97316/spam
Del: non-english -- https://master.php.net/note/delete/97316/non-english
Del: in docs -- https://master.php.net/note/delete/97316/in+docs
Del: other reasons-- https://master.php.net/note/delete/97316
Reject -- https://master.php.net/note/reject/97316
Search -- https://master.php.net/manage/user-notes.php