Skip to content

Conversation

@mikhainin
Copy link

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

@mikhainin mikhainin merged commit faa02f9 into badoo:master Nov 4, 2019
mikhainin pushed a commit that referenced this pull request Dec 9, 2022
* 'master' of github.com:badoo/php-lua:
  Review fix: check return type of Exception::getMessage()
  Show test output when test failed
  Catch PHP exception thrown during callback execution
  Fixed build
  Demangle object name (#2)
  Run Actions on pull request
  Github Actions integration
  Added Lua::loadstring()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant