Skip to content

Unexpected behaviour when reference to array element is created #93

Closed
@zaglex

Description

@zaglex

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingphp7

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions