Skip to content

Integer support#51

Open
flysion wants to merge 1 commit intolaruence:masterfrom
flysion:patch-1
Open

Integer support#51
flysion wants to merge 1 commit intolaruence:masterfrom
flysion:patch-1

Conversation

@flysion
Copy link

@flysion flysion commented Nov 24, 2021

在新版本的lua中已经可以区分integer和double了,这就可以解决扩展统一把lua的number类型转换成php的double的问题

$lua->eval("a=2");
// old
gettype($lua->a); // double
// new
gettype($lua->a); // integer

在新版本的lua中已经可以区分integer和double了,这就可以解决扩展统一把lua的number类型转换成php的double的问题
```
$lua->eval("a=2");
// old
gettype($lua->a); // double
// new
gettype($lua->a); // integer
```
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