Bump version
[phplua.git] / tests / 009.phpt
blob1b44638212d6f6a3dc42cb7a33231da59eeefcc0
1 --TEST--
2 Calling a PHP function from within lua
3 --SKIPIF--
4 <?php if (!extension_loaded("lua")) print "skip"; ?>
5 --FILE--
6 <?php
7 function test($x,$y)
9   return $x+$y;
12 $lua=new lua;
13 $lua->expose_function("php_test","test");
14 $lua->expose_function("php_test2","test");
15 $lua->evaluate('print(php_test(5,4)..php_test(5,13))');
17 --EXPECTF--
18 918