Skip to content

Conversation

@dorantor
Copy link
Contributor

@dorantor dorantor commented May 8, 2017

array(null, 11211, 1) + $value

is wrong.
As mentioned at http://php.net/manual/en/language.operators.array.php elements from first array will not be replaced by the elements from second with same keys. And tests proves that.
Probably everybody was working with memc on the same server as php :)

Some docblocks and test for this case added.

@dracony dracony merged commit 76ed46a into PHPixie:master May 8, 2017
@dracony
Copy link
Member

dracony commented May 8, 2017

Thanks!

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.

2 participants