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
/
008.phpt
blob
ec68101515736d9e19616de609a1d369e8d96b3b
1
--TEST--
2
Array handling test lua->php
3
--SKIPIF--
4
<?php if (!extension_loaded("lua")) print "skip"; ?>
5
--FILE--
6
<?php
7
$l = new lua();
8
$l->evaluate("
9
arr={1,test=\"asdf\",{4.5,false,nil}}
10
arr[100]={4,5,6}
11
");
12
var_dump($l->arr);
13
?>
14
--EXPECTF--
15
array(4) {
16
[1]=>
17
float(1)
18
[2]=>
19
array(2) {
20
[1]=>
21
float(4.5)
22
[2]=>
23
bool(false)
24
}
25
["test"]=>
26
string(4) "asdf"
27
[100]=>
28
array(3) {
29
[1]=>
30
float(4)
31
[2]=>
32
float(5)
33
[3]=>
34
float(6)
35
}
36
}