diff --git a/tests/013.phpt b/tests/013.phpt new file mode 100644 index 0000000..5da0ed4 --- /dev/null +++ b/tests/013.phpt @@ -0,0 +1,30 @@ +--TEST-- +PHP Closures from Lua +--SKIPIF-- + +--FILE-- +eval(<<test(function($msg) { + print "$msg"; + + return function($msg) { + print "$msg"; + }; + }); +} catch(LuaException $e) { + echo $e->getMessage(); +} +?> +--EXPECTF-- +called from luareturned from php