Re: application for a svn account(new extension PLua)
| From: | Johannes Schlüter | Date: | Mon, 04 Jul 2011 12:13:59 +0000 |
| Subject: | Re: application for a svn account(new extension PLua) | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8410@lists.php.net to get a copy of this message | ||
Hi,
Andreas (on CC) did some work on the PECL lua extension which is
available via http://phplua.3uu.de/ I think you should join your
efforts
and make sure the result is available via PECL.
I myself don't mind if any of you takes over but please coordinate so we
get one very good extension instead of two or three like now :-)
johannes
On Sun, 2011-06-19 at 14:56 +0800, 惠新宸 wrote:
> Hi:
>
> PLua(http://code.google.com/p/plua/) is a PHP extension which with
> the LUA interpreter embed in.
>
> PLua is an rewritten version of PHP-Lua(http://phplua.3uu.de/),
> rewritten codes, add support for LUA_TFUNCTION return by Lua,
> optimized profermance, made compatible with c89, and more other new
> features...
>
> I hope can submit Plua to Pecl(btw: also I have submit another PHP
> extension Yaf(http://code.google.com/p/yafphp/) before , but no one
> response).
>
> if any other infos needed, plz inform me.
>
> thanks;
>
> APIS
>
> $lua = new Plua($lua_script_file = NULL);
>
> $lua->eval("lua_statements"); //eval lua codes
> $lua->include("lua_script_file"); //import a lua script
>
> $lua->assign("name", $value); //assign a php variable to Lua
> $lua->register("name", $function); //register a PHP function to Lua
> with "name"
>
> $lua->call($string_lua_function_name, array() /*args*/);
> $lua->call($resouce_lua_anonymous_function, array() /*args);
> $lua->call(array("table", "method"), array(....,
> "push_self" =>
> [true | false]) /*args*/);
>
> $lua->{$lua_function}(array()/*args*/);
>
>
>