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
int vs. long when parsing arguments :|
[phplua.git]
/
tests
/
004.phpt
blob
61d3d2a9e91d4778e3ffde31a01c28be44c88eda
1
--TEST--
2
Type conversion from lua to PHP
3
--SKIPIF--
4
<?php if (!extension_loaded("lua")) print "skip"; ?>
5
--FILE--
6
<?php
7
$l = new lua();
8
9
$l->evaluate(<<<CODE
10
a = nil
11
b = false
12
c = 23
13
d = -432
14
e = 432.432
15
f = 0
16
g = 14.3e24
17
h = "foobar"
18
i = ""
19
CODE
20
);
21
22
for ($i = 'a'; $i < 'j'; $i++) {
23
var_dump($l->{$i});
24
}
25
?>
26
--EXPECT--
27
NULL
28
bool(false)
29
float(23)
30
float(-432)
31
float(432.432)
32
float(0)
33
float(1.43E+25)
34
string(6) "foobar"
35
string(0) ""