mirror of
https://github.com/php-win-ext/php-lua.git
synced 2026-03-24 09:02:13 +01:00
23 lines
410 B
PHP
23 lines
410 B
PHP
--TEST--
|
|
Bug #71997 (One-Dimensional arrays cause segmentation faults)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("lua")) print "skip lua extension missing";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$mylua = new \lua();
|
|
$mylua->eval(<<<CODE
|
|
function nicefunction(args)
|
|
print(args[1])
|
|
return args[1]
|
|
end
|
|
CODE
|
|
);
|
|
|
|
echo $mylua->call("nicefunction", array(array('hello', 'world')));
|
|
?>
|
|
done
|
|
--EXPECT--
|
|
worldworlddone
|