Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Unable to include more than 1 file from PH7_VM_CONFIG_IMPORT_PATH. #20

Open
Maxwell175 opened this issue May 16, 2018 · 6 comments
Open

Comments

@Maxwell175
Copy link

Hello,

I discovered this strange, obscure bug where the second include/require of a file from the PH7_VM_CONFIG_IMPORT_PATH doesn't work. After some investigation, I found that when PH7_StreamOpenHandle is called for the second include, SySetGetNextEntry returns garbage on the second round of the while loop (first time it correctly returns ./).

I just can't seem to find the root of this problem, though. My temporary mitigation is to chdir to the import path, but that's just not right.

Thanks

Using latest version built with -DPH7_ENABLE_THREADS -DMAP_FILE=0x0001. Run on Ubuntu 18.04 x64.

@symisc
Copy link
Owner

symisc commented May 16, 2018

Could you post the chunk of code you used to produce such behavior?

@Maxwell175
Copy link
Author

Maxwell175 commented May 17, 2018

@symisc
Copy link
Owner

symisc commented May 17, 2018

If the first file is included correctly and not the second. Are you sure that this file is accessible (permissions, etc.). Try using require_once, include directive instead to check if the problem persists.

@Maxwell175
Copy link
Author

Maxwell175 commented May 17, 2018 via email

@symisc
Copy link
Owner

symisc commented May 17, 2018

Did you configure PH7_VM_CONFIG_IMPORT_PATH with the target path in your code? I did not see any reference to it in your code.

@Maxwell175
Copy link
Author

Maxwell175 commented May 17, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants