note 97316 deleted from function.html-entity-decode by degeberg

From: Date: Wed, 14 Apr 2010 09:09:01 +0000
Subject: note 97316 deleted from function.html-entity-decode by degeberg
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168222@lists.php.net to get a copy of this message
Note Submitter: dexen deVries ---- 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.

« previous php.notes (#168222) next »