1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Allow skipping hint_charset (fixes ext/standard/tests/strings/htmlentities18.phpt)

This commit is contained in:
Hannes Magnusson
2007-05-25 14:09:02 +00:00
parent eb0f324f70
commit df03be1a3b
+1 -1
View 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;
}