]> granicus.if.org Git - php/commitdiff
Allow skipping hint_charset (fixes ext/standard/tests/strings/htmlentities18.phpt)
authorHannes Magnusson <bjori@php.net>
Fri, 25 May 2007 14:09:02 +0000 (14:09 +0000)
committerHannes Magnusson <bjori@php.net>
Fri, 25 May 2007 14:09:02 +0000 (14:09 +0000)
ext/standard/html.c

index 59d02c1f3aaa75ea3ff50c0a61cc664639fc1732..9d73ce216c042e7b13ce5e27f0e43c4f0de956d1 100644 (file)
@@ -1224,7 +1224,7 @@ static void php_html_entities(INTERNAL_FUNCTION_PARAMETERS, int all)
        char *replaced;
        zend_bool double_encode = 1;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|lsb", &str, &str_len, &quote_style, &hint_charset, &hint_charset_len, &double_encode) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ls!b", &str, &str_len, &quote_style, &hint_charset, &hint_charset_len, &double_encode) == FAILURE) {
                return;
        }