Lines Matching refs:maxlen
1216 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1258 maxlen = 128; in php_escape_html_entities_ex()
1260 maxlen = 2 * oldlen; in php_escape_html_entities_ex()
1261 if (maxlen < oldlen) { in php_escape_html_entities_ex()
1267 replaced = emalloc(maxlen + 1); /* adding 1 is safe: maxlen is even */ in php_escape_html_entities_ex()
1279 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex()
1280 replaced = safe_erealloc(replaced, maxlen , 1, 128 + 1); in php_escape_html_entities_ex()
1281 maxlen += 128; in php_escape_html_entities_ex()
1411 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1413 replaced = safe_erealloc(replaced, maxlen, 1, ent_len + 128 + 1); in php_escape_html_entities_ex()
1414 maxlen += ent_len + 128; in php_escape_html_entities_ex()