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

Boolean FALSE is always TRUE #22

Closed JohnKiller closed 8 years ago

JohnKiller commented 8 years ago

$lua = new Lua(); $lua->assign('TEST', false); $result = $lua->eval('return TEST'); var_dump($result);

This incorrectly returns bool(true)

This also happens when returning value from PHP functions using RegisterCallback

laruence commented 8 years ago

it should be fixed. thanks

JohnKiller commented 8 years ago

Thank you for the fast fix. Will this be released in PECL?

laruence commented 8 years ago

@JohnKiller I will probably do a release this weekend, thanks for reporting :)