[php-maint] Bug#506970: PHP 5.2.0-8+etch13 function bug - Warning: htmlentities() expects at most 3 parameters, 4 given

Stuart Lindley stuart.lindley at gmail.com
Wed Nov 26 15:55:38 UTC 2008


Package: php5
Version: 5.2.0-8+etch13

When I use htmlentities() function with 4 parameters, I get the following
error:

Warning: htmlentities() expects at most 3 parameters, 4 given

The code that causes this is. Any code which uses 4 parameters in this
function will cause this problem

<?php

    $htmlForOutput = "this is some text &amp; some <html>";

    echo htmlentities($htmlForOutput, ENT_QUOTES, "UTF-8", false);

?>

This function accepts up to 4 parameters, the 4th one being important to me
in this instance as I don't want double HTML entity encoding.

http://uk2.php.net/manual/en/function.htmlentities.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20081126/3254d66a/attachment.htm 


More information about the pkg-php-maint mailing list