Changeset 79963 in spip-zone
- Timestamp:
-
Jan 11, 2014, 2:41:02 PM
(7 years ago)
- Author:
- cedric@…
- Message:
-
Report de r79329 : Jeu de test unitaire pour la fonction spip_htmlentities candidate suivante, à tester en PHP 5.4
<pre>
/
- htmlentities wrapper (PHP >= 5.4 compat issue)
*
- @param string $string
- @param int $flags
- @param string $encoding
- @param bool $double_encode
- @return string
*/
function spip_htmlentities($string,$flags=null,$encoding = 'ISO-8859-1',$double_encode = true){
if (is_null($flags)) $flags = ENT_COMPAT|ENT_HTML401;
if (!defined('PHP_VERSION_ID') OR PHP_VERSION_ID < 50203)
return htmlentities($string,$flags,$encoding);
else
return htmlentities($string,$flags,$encoding,$double_encode);
}
</pre>
-
File:
-