-
Notifications
You must be signed in to change notification settings - Fork 25
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
Check if a given PHP Binary is actually valid #25
Conversation
5773317
to
1fc2996
Compare
1fc2996
to
df28f0c
Compare
You are using the wrong directory separator on windows, possibly causing is_executable to “always” return false. |
Hmm, looking at this test: The commented-out
is correct, but:
is outdated. |
I see, "normalizing" the path was just the first step.
you are correct, it does not appear hold https://github.com/php/php-src/blob/PHP-8.3.11/win32/ioutil.c#L924-L940 My understanding was, and please correct me If i’m wrong, even if we change the file extension, on windows, if the file’s internal format is NOT recognized as executable, Executability is determined by: Windows returns
or
Unix-like Systems returns
I would not say outdated but there might be an undocumented behavior/s when we set the file type and permissions or when checking executable permission or on files with empty DACLs. (empty DACL: no permissions explicitly granted or denied to anyone, effectively making the file inaccessible to all users, including the file's owner.) P.S. Thanks for being patient and indulging my curiosity. |
Fixes #12