I am having some problems with parsing large text strings.
I have this line:
$tokens = token_get_all("<?php\n" . $string . "\n?>");
and when the string is small it works fine. But when the string is like 15mb my app crashes showing just a blank page. If i debug it with die(), die on top of this line works fine but when i put it down this line it doesn't work.
Anybody have any ideas how to make it possible for token_get_all to parse large strings?