Do not create variable in foreach() loop automatically.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
2bda002259
commit
9f4f6298c2
|
@ -4150,7 +4150,7 @@ static sxi32 VmByteCodeExec(
|
||||||
PH7_HashmapUnref(pMap);
|
PH7_HashmapUnref(pMap);
|
||||||
} else {
|
} else {
|
||||||
if((pStep->iFlags & PH7_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0) {
|
if((pStep->iFlags & PH7_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0) {
|
||||||
ph7_value *pKey = VmExtractMemObj(&(*pVm), &pInfo->sKey, FALSE, TRUE);
|
ph7_value *pKey = VmExtractMemObj(&(*pVm), &pInfo->sKey, FALSE, FALSE);
|
||||||
if(pKey) {
|
if(pKey) {
|
||||||
PH7_HashmapExtractNodeKey(pNode, pKey);
|
PH7_HashmapExtractNodeKey(pNode, pKey);
|
||||||
}
|
}
|
||||||
|
@ -4167,7 +4167,7 @@ static sxi32 VmByteCodeExec(
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Make a copy of the entry value */
|
/* Make a copy of the entry value */
|
||||||
pValue = VmExtractMemObj(&(*pVm), &pInfo->sValue, FALSE, TRUE);
|
pValue = VmExtractMemObj(&(*pVm), &pInfo->sValue, FALSE, FALSE);
|
||||||
if(pValue) {
|
if(pValue) {
|
||||||
PH7_HashmapExtractNodeValue(pNode, pValue, TRUE);
|
PH7_HashmapExtractNodeValue(pNode, pValue, TRUE);
|
||||||
}
|
}
|
||||||
|
@ -4201,7 +4201,7 @@ static sxi32 VmByteCodeExec(
|
||||||
ph7_value *pAttrValue;
|
ph7_value *pAttrValue;
|
||||||
if((pStep->iFlags & PH7_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0) {
|
if((pStep->iFlags & PH7_4EACH_STEP_KEY) && SyStringLength(&pInfo->sKey) > 0) {
|
||||||
/* Fill with the current attribute name */
|
/* Fill with the current attribute name */
|
||||||
ph7_value *pKey = VmExtractMemObj(&(*pVm), &pInfo->sKey, FALSE, TRUE);
|
ph7_value *pKey = VmExtractMemObj(&(*pVm), &pInfo->sKey, FALSE, FALSE);
|
||||||
if(pKey) {
|
if(pKey) {
|
||||||
SyBlobReset(&pKey->sBlob);
|
SyBlobReset(&pKey->sBlob);
|
||||||
SyBlobAppend(&pKey->sBlob, pAttrName->zString, pAttrName->nByte);
|
SyBlobAppend(&pKey->sBlob, pAttrName->zString, pAttrName->nByte);
|
||||||
|
@ -4222,7 +4222,7 @@ static sxi32 VmByteCodeExec(
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Make a copy of the attribute value */
|
/* Make a copy of the attribute value */
|
||||||
pValue = VmExtractMemObj(&(*pVm), &pInfo->sValue, FALSE, TRUE);
|
pValue = VmExtractMemObj(&(*pVm), &pInfo->sValue, FALSE, FALSE);
|
||||||
if(pValue) {
|
if(pValue) {
|
||||||
PH7_MemObjStore(pAttrValue, pValue);
|
PH7_MemObjStore(pAttrValue, pValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue