<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Test tmpdir in test.php</title> 
  <pubDate>Thu, 09 Apr 2026 19:17:32 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14237</link> 
  <atom:link rel="self" type="application/rss+xml" title="Test tmpdir in test.php" href="https://bugs.horde.org/ticket/14237/rss" /> 
  <description>Test tmpdir in test.php</description> 
 
   
   
  <item> 
   <title>please add a test to test.php, in order to check if Horde ca</title> 
   <description>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 @@
             ? &#039;&lt;strong style=&quot;color:green&quot;&gt;Yes&lt;/strong&gt;&#039;
             : &#039;&lt;strong style=&quot;color:red&quot;&gt;No&lt;/strong&gt;&lt;br /&gt;&lt;strong style=&quot;color:orange&quot;&gt;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.&lt;/strong&gt;&#039;;
 
+        /* Determine if &#039;tmpdir&#039; is writable by the web user. */
+        $tmpdir = Horde::getTempDir();
+        $ret .= sprintf(&#039;&lt;li&gt;Is tmpdir &lt;tt&gt;%s&lt;/tt&gt; writable by the web server user%s? &#039;,
+                    htmlspecialchars($tmpdir),
+                    $user ? (&#039; (&#039; . $user[&#039;name&#039;] . &#039;)&#039;) : &#039;&#039;);
+        $ret .= is_writable($tmpdir)
+            ? &#039;&lt;strong style=&quot;color:green&quot;&gt;Yes&lt;/strong&gt;&#039;
+            : &#039;&lt;strong style=&quot;color:red&quot;&gt;No&lt;/strong&gt;&lt;br /&gt;&#039;;
+
         if (extension_loaded(&#039;imagick&#039;)) {
             $im = new Imagick();
             $imagick = is_callable(array($im, &#039;getIteratorIndex&#039;));
</description> 
   <pubDate>Tue, 02 Feb 2016 09:27:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14237#t89815</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_2):

commit 92a56</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_2):

commit 92a567cfaf84e00f8dbcdcd6bd9f28a992bdd802
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu Feb 11 15:48:45 2016 +0100

    [jan] Check if temporary directory is writable (skhorde@smail.inf.fh-bonn-rhein-sieg.de, Request #14237).

 horde/docs/CHANGES |    2 ++
 horde/lib/Test.php |   11 +++++++++++
 horde/package.xml  |    4 ++--
 3 files changed, 15 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/92a567cfaf84e00f8dbcdcd6bd9f28a992bdd802</description> 
   <pubDate>Thu, 11 Feb 2016 14:49:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14237#t89890</link> 
  </item> 
   
  <item> 
   <title>Thanks!</title> 
   <description>Thanks!</description> 
   <pubDate>Thu, 11 Feb 2016 14:50:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14237#t89892</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 376f8c1c2da4</title> 
   <description>Changes have been made in Git (master):

commit 376f8c1c2da4adb410471ccf207ffb37ca310da5
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu Feb 11 15:48:45 2016 +0100

    [jan] Check if temporary directory is writable (skhorde@smail.inf.fh-bonn-rhein-sieg.de, Request #14237).

 horde/lib/Test.php |   11 +++++++++++
 horde/package.xml  |   19 +++++++++++++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)

http://github.com/horde/horde/commit/376f8c1c2da4adb410471ccf207ffb37ca310da5</description> 
   <pubDate>Fri, 12 Feb 2016 10:42:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14237#t89919</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_2):

commit c3e8a</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_2):

commit c3e8ad168fcc516bc0a7598bc6752042df18e404
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Thu, 11 Feb 2016 15:48:45 +0100

[jan] Check if temporary directory is writable (skhorde@smail.inf.fh-bonn-rhein-sieg.de, Request #14237).

 M docs/CHANGES
 M lib/Test.php
 M package.xml

https://github.com/horde/base/commit/c3e8ad168fcc516bc0a7598bc6752042df18e404</description> 
   <pubDate>Fri, 20 Oct 2017 20:33:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14237#t92375</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
