dahlia/lisphp — pull request #3 by igorw (2012-07-11 14:31:39+00:00)
Title: Allow __call method calls, lambdas as runtime functions

[Predis\Client](http://github.com/nrk/predis) uses the `__call` magic method to delegate calls. This patch allows calling those methods:

(require "vendor/autoload.php")

(use )

(define client ())

(var_dump
((-> client set) "foo" "bar"))

It also allows using PHP 5.3 lambdas as `Lisphp_Runtime_PHPFunction`:

$scope['require'] = new Lisphp_Runtime_PHPFunction(function ($file) {
require $file;
});