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

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect? #456

Closed
1 task done
jaswrks opened this issue Mar 27, 2015 · 6 comments
Closed
1 task done

Comments

@jaswrks
Copy link

jaswrks commented Mar 27, 2015

Referencing: https://github.com/websharks/zencache/blob/000000-dev/zencache/includes/share.php#L1445

Whenever ZenCache is running on an installation of PHP with open_basedir restrictions applied, a call to is_dir() triggers a PHP Warning whenever ZenCache is looking for a writable temporary directory.

Next Actions

@jaswrks jaswrks added the bug label Mar 27, 2015
@jaswrks
Copy link
Author

jaswrks commented Mar 27, 2015

Referencing this private bug report.
https://websharks.zendesk.com/agent/tickets/5721

@raamdev raamdev added this to the Next Release milestone Mar 27, 2015
@raamdev
Copy link
Contributor

raamdev commented Mar 27, 2015

@jaswsinc Thanks for the bug report! Working on this now.

@raamdev
Copy link
Contributor

raamdev commented Mar 27, 2015

@jaswsinc Wouldn't the @ suppression need to be added to all calls to is_dir() and is_writeable() throughout the codebase to fix this bug?

@raamdev
Copy link
Contributor

raamdev commented Mar 27, 2015

@jaswsinc Ah, I see this is related specifically to opening the temp directory:

File(/var/tmp/) is not within the allowed path(s)

So in that case, only modifying the lines you referenced above should be necessary.

@raamdev
Copy link
Contributor

raamdev commented Mar 27, 2015

Next release changelog:

  • Bug Fix: When ZenCache was running on an installation of PHP with open_basedir restrictions applied, calls to is_dir() were triggering a PHP Warning while looking for a writable temporary directory. This bug has been fixed. Issue #456.

@raamdev raamdev closed this as completed Mar 27, 2015
@raamdev
Copy link
Contributor

raamdev commented Apr 10, 2015

This fix has been released with ZenCache v150409:
http://zencache.com/zencache-v150409-now-available/

If you need to follow-up with something related to this GitHub Issue, please open a new GitHub Issue.

@wpsharks wpsharks locked and limited conversation to collaborators Apr 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants