CopernicaMarketingSoftware/PHP-CPP — pull request #114 by andot (2014-07-10 08:16:45+00:00)
Title: Fixed Php::Value copy constructor

The old copy constructor of Php::Value does't work correctly when I put
a Php::Value with php reference into a std::vector, or use a reference
as a unordered_map key. for example:

```c++
Php::Value test_value_ctor(Php::Parameters ¶ms) {
int32_t count = params[0].size();
std::vector v;
for (int32_t i = 0; i < count; ++i) {
v.push_back(params[0][i]);
}
return v;
}
```

the test php file:
```php

```

Expected output is:
```
array(2) {
[0]=>
&array(2) {
[0]=>
*RECURSION*
[1]=>
string(5) "hello"
}
[1]=>
string(5) "hello"
}
array(2) {
[0]=>
&array(2) {
[0]=>
*RECURSION*
[1]=>
string(5) "hello"
}
[1]=>
string(5) "hello"
}
```

The actual output is:
```
array(2) {
[0]=>
&array(2) {
[0]=>
*RECURSION*
[1]=>
string(5) "hello"
}
[1]=>
string(5) "hello"
}
array(2) {
[0]=>
array(2) {
[0]=>
&array(2) {
[0]=>
*RECURSION*
[1]=>
string(5) "hello"
}
[1]=>
string(5) "hello"
}
[1]=>
string(5) "hello"
}
```

This patch fixed it.