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

Fix warnings in restricted environments #466

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Conversation

mroi
Copy link
Contributor

@mroi mroi commented Apr 7, 2017

This is probably a controversial pull request, but I decided to suggest it anyways. I am developing an esoTalk forum app for Nextcloud over here. (*)

Unfortunately, Nextcloud runs PHP with strict error reporting and I additionally add open_basedir restrictions on top. The first patch in this pull request fixes many warnings esoTalk emits with PHP strict reporting. The second patch fixes warnings due to open_basedir. These should have no particular effect on standard esoTalk installations, since I (hopefully) did not change any code semantics.

The only limitation I can see is that the array indexing for function returns only works with PHP 5.4 and above. So feel free to reject this pull request or cherry-pick from it. Or ask me questions for particular changes.

(*) I know that I will have to transition to Flarum in the near future, but I am maintaining this anyways, because it is in active use for a project I manage.

mroi added 2 commits April 7, 2017 18:17
• do not access index.html/* when checking file existence
• do not try to mkdir() above PATH_ROOT
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

Successfully merging this pull request may close these issues.

1 participant