-
Notifications
You must be signed in to change notification settings - Fork 102
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
Odd behaviour on CentOS (and RHEL) #81
Comments
Currently, the implemention of |
|
In my opinion a solution with (a backticked) "id -u" would be very hacky and ugly - I just used it in the example for documentation purposes. As far as I understand the function "id", it is not even sure, that all UNIX systems necessarily have it available. My Linux box (Xubuntu 13.10) and my OpenBSD box (5.5) both have it available, but I have no clue about AIX, HPUX, MacOS, Solaris, etc. |
I decided to not look into any further possibilities. Instead, I added a note in the requirements that Posix must be enabled. As on Windows no Posix is available I can't add it to the requirements in the |
I just had to find out, that CentOS (and obviously RHEL) have PHP installed without the 'posix' module. This leads to an odd behaviour in 'is_writable'. See the console capture that shows the problem:
The problem - as far as I understand it - lies in the fact, that the virtual 'base' driectory is created as root (0) because it get's the UID through vfsStream#getCurrentUser(). The PHP function 'is_writable' is using the correct current user, which is 500 in my case and therefore is not allowed to write to the virtual 'base'.
I cannot really say what my expectations are: Is it simply a 'Known issue' or is there a possibility in the code to overcome this odd behaviour?
The text was updated successfully, but these errors were encountered: