Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer support #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Integer support #51

wants to merge 1 commit into from

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