Is it possible to simulate closures in PHP 5.2.x not using globals? I could think of a way that would pass the desired variables as extra parameters to the closure but that
My solution: http://techblog.triptic.nl/simulating-closures-in-php-versions-prior-to-php-5-3/
It does however pass the variables within an object to the closure as the first argument.