Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants