finally fix recursion limits

faster, better and now even fall back to PHP 5.2 requirements again