fixing in the vm context instead, making the feature available in case realpath could be implemented as well

This commit is contained in:
2018-07-23 06:07:27 +01:00
parent 3ae20a1ca6
commit dba8e5098f
8 changed files with 31 additions and 23 deletions

View File

@@ -2907,7 +2907,7 @@ PH7_PRIVATE void *PH7_StreamOpenHandle(ph7_vm *pVm, const ph7_io_stream *pStream
if(rc == PH7_OK) {
if(bPushInclude) {
/* Mark as included */
PH7_VmPushFilePath(pVm, (const char *)SyBlobData(&sWorker), SyBlobLength(&sWorker), FALSE, pNew);
PH7_VmPushFilePath(pVm, (const char *)SyBlobData(&sWorker), FALSE, pNew);
}
break;
}
@@ -2920,7 +2920,7 @@ PH7_PRIVATE void *PH7_StreamOpenHandle(ph7_vm *pVm, const ph7_io_stream *pStream
if(rc == PH7_OK) {
if(bPushInclude) {
/* Mark as included */
PH7_VmPushFilePath(pVm, sFile.zString, sFile.nByte, FALSE, pNew);
PH7_VmPushFilePath(pVm, sFile.zString, FALSE, pNew);
}
}
} else {