2 Array handling tests PHP=>LUA=>PHP
4 <?php if (!extension_loaded("lua")) print "skip"; ?>
7 $pautz=array("hund"=>"ja","ne",array("test"),array("mann",array("ja","aber ne")),"rumms");
12 $lua->katze="hundemann";
14 function dump_table(t,lvl)
15 print('==============\\n')
18 print(string.rep(' ',lvl),i,'=>')
19 if type(v)=='table' then
20 print('isse table :S\\n')
27 print('==============\\n')
31 def={1,2,3,5,{4.3,5},hass={peter=1,3,\"hund\"},20,30}
34 print(\"Pautz\",pautz,\"\\n\")
35 print(\"Hund\",hund,\"\\n\")
36 print(\"Def\",def,\"\\n\")
41 print('HUNDEMANN IST => ',katze,'\\n')
46 var_dump($lua->pautz);
75 Warning: main(): Trying to push array index 0 to lua which is unsupported in lua. Element has been discarded in /home/mop/projekte/phplua/tests/011.php on line 5
77 Warning: main(): Trying to push array index 0 to lua which is unsupported in lua. Element has been discarded in /home/mop/projekte/phplua/tests/011.php on line 5
79 Warning: main(): Trying to push array index 0 to lua which is unsupported in lua. Element has been discarded in /home/mop/projekte/phplua/tests/011.php on line 5
81 Warning: main(): Trying to push array index 0 to lua which is unsupported in lua. Element has been discarded in /home/mop/projekte/phplua/tests/011.php on line 5
111 HUNDEMANN IST => hundemann