laruence / php-lua

This extension embeds the lua interpreter and offers an OO-API to lua variables and functions.
http://pecl.php.net/package/lua
Other
149 stars 50 forks source link

Demangle name of a property when assigning an object into Lua #42

Closed mikhainin closed 4 years ago

mikhainin commented 5 years ago

Current implementation of "assign" method converts objects into lua-tables (just like hash-arrays). However, all fields of an object internally contain "mangled" names, i.e. field Test::$field will be named as "Testfield".

While, expected name "field" I suppose. In the PR added unmangling of names so that it now acts like get_object_vars() for objects