Skip to content

Unexpected behaviour when reference to array element is created #93

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

Closed
zaglex opened this issue Jul 15, 2016 · 1 comment
Closed

Unexpected behaviour when reference to array element is created #93

zaglex opened this issue Jul 15, 2016 · 1 comment
Assignees
Labels
bug Something isn't working php7

Comments

@zaglex
Copy link

zaglex commented Jul 15, 2016

Example:

function myfunc(data)
end
$data = [
     'key1' => 'value1',
];
$link = &$data['key1'];
$tarantool->call('myfunc', [$data]);

Problem:
Inside lua-function 'myfunc' i see that data['key1'] is null (cdata<void *>: NULL).

Expected behaviour:
data['key1'] must be 'value1' in lua-function.

@bigbes bigbes added bug Something isn't working php7 labels Sep 6, 2016
@bigbes bigbes self-assigned this Sep 6, 2016
@bigbes
Copy link
Contributor

bigbes commented Sep 6, 2016

This bug was due to new type in PHP7 - "IS_REFERENCE". It must be fixed now on branch php7-v2. Thanks for your patience.

@bigbes bigbes closed this as completed Sep 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working php7
Projects
None yet
Development

No branches or pull requests

2 participants