Always make an array copy. Fixes #48.
All checks were successful
The build was successful.

This commit is contained in:
2019-04-20 07:19:35 +02:00
parent e794ffd97b
commit d819820798
2 changed files with 11 additions and 15 deletions

View File

@@ -1008,12 +1008,6 @@ PH7_PRIVATE sxi32 PH7_HashmapDup(ph7_hashmap *pSrc, ph7_hashmap *pDest) {
ph7_value sKey, *pVal;
sxi32 rc;
sxu32 n;
if(pSrc == pDest) {
/* Same map. This can easily happen since hashmaps are passed by reference.
* Unlike the zend engine.
*/
return SXRET_OK;
}
/* Point to the first inserted entry in the source */
pEntry = pSrc->pFirst;
/* Perform the duplication */