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

error when assigning an array containing referenced string to lua #27

Closed ComaVN closed 7 years ago

ComaVN commented 7 years ago

When assigning an array with referenced strings in it, I get an error:

PHP Fatal error:  Lua::assign(): unsupported type `string' for lua in /home/roel/git/php-lua-reference-error/test-assign.php on line 25

See https://github.com/ComaVN/php-lua-reference-error for a PoC

ComaVN commented 7 years ago

This is on php 7.0, php-lua 2.0.2 Also reproduced in php 7.1.

I cannot reproduce on php 5.6.29, php-lua 1.1.0

laruence commented 7 years ago

it should be fixed in master , I will make a release soon.