h2o-php icon indicating copy to clipboard operation
h2o-php copied to clipboard

Tags not interpreted after large number of characters.

Open crempp opened this issue 15 years ago • 1 comments

If you create a template:

{% extends base.html %}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum id consequat justo. Phasellus gravida, mi a aliquam eleifend, nisi quam elementum felis, eget congue magna lorem eget magna....
... REPEAT FOR A LONG TIME...
{% block content %}

{% endblock %}

The block and endblock tags are not interpreted but are shown in the output as raw tags. If you move the block to the top of the file the block shows correctly.

It seems like there's a maximum number of characters allowed in the templates.

crempp avatar Dec 15 '10 16:12 crempp

try ini_set('pcre.backtrack_limit',1000000) before rendering or even more than 1M (default value is 100K)

cyberklin avatar Dec 19 '10 11:12 cyberklin