Lines Matching refs:maxlen
1228 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1270 maxlen = 128; in php_escape_html_entities_ex()
1272 maxlen = 2 * oldlen; in php_escape_html_entities_ex()
1273 if (maxlen < oldlen) { in php_escape_html_entities_ex()
1279 replaced = emalloc(maxlen + 1); /* adding 1 is safe: maxlen is even */ in php_escape_html_entities_ex()
1291 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex()
1292 replaced = safe_erealloc(replaced, maxlen , 1, 128 + 1); in php_escape_html_entities_ex()
1293 maxlen += 128; in php_escape_html_entities_ex()
1423 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1425 replaced = safe_erealloc(replaced, maxlen, 1, ent_len + 128 + 1); in php_escape_html_entities_ex()
1426 maxlen += ent_len + 128; in php_escape_html_entities_ex()