6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14237] Test tmpdir in test.php
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..__ __ .__.. , [__][__)/ `[__] \./ | || \\__.| | |
Comment
> please add a test to test.php, in order to check if Horde can write > to the configured tmpdir, e.g.: > > diff -r 196e5df19f18 var/www/horde/lib/Test.php > --- a/var/www/horde/lib/Test.php Tue Feb 02 09:12:37 2016 +0100 > +++ b/var/www/horde/lib/Test.php Tue Feb 02 10:21:35 2016 +0100 > @@ -952,6 +952,15 @@ > ? '<strong style="color:green">Yes</strong>' > : '<strong style="color:red">No</strong><br /><strong > style="color:orange">If caching javascript and CSS files by storing > them in static files (HIGHLY RECOMMENDED), this directory must be > writable as the user the web server runs as%s.</strong>'; > > + /* Determine if 'tmpdir' is writable by the web user. */ > + $tmpdir = Horde::getTempDir(); > + $ret .= sprintf('<li>Is tmpdir <tt>%s</tt> writable by the > web server user%s? ', > + htmlspecialchars($tmpdir), > + $user ? (' (' . $user['name'] . ')') : ''); > + $ret .= is_writable($tmpdir) > + ? '<strong style="color:green">Yes</strong>' > + : '<strong style="color:red">No</strong><br />'; > + > if (extension_loaded('imagick')) { > $im = new Imagick(); > $imagick = is_callable(array($im, 'getIteratorIndex')); >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers