repo.or.cz
/
phplua.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version
[phplua.git]
/
tests
/
009.phpt
blob
1b44638212d6f6a3dc42cb7a33231da59eeefcc0
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)
8
{
9
return $x+$y;
10
}
11
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))');
16
?>
17
--EXPECTF--
18
918