h2o-php
h2o-php copied to clipboard
Tags not interpreted after large number of characters.
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.
try ini_set('pcre.backtrack_limit',1000000) before rendering or even more than 1M (default value is 100K)