svn: /pear2/Pyrus/trunk/tests/AtomicFileTransaction/ setup.empty.php.inc
| From: | Brett Bieber | Date: | Wed, 12 May 2010 00:32:32 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/tests/AtomicFileTransaction/ setup.empty.php.inc | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9402@lists.php.net to get a copy of this message | ||
saltybeagle Wed, 12 May 2010 00:32:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299271
Log:
Add a check before creating the temp directory. The dir may exist if the process was killed
previously.
Changed paths:
U pear2/Pyrus/trunk/tests/AtomicFileTransaction/setup.empty.php.inc
Modified: pear2/Pyrus/trunk/tests/AtomicFileTransaction/setup.empty.php.inc
===================================================================
--- pear2/Pyrus/trunk/tests/AtomicFileTransaction/setup.empty.php.inc 2010-05-12 00:09:49 UTC (rev
299270)
+++ pear2/Pyrus/trunk/tests/AtomicFileTransaction/setup.empty.php.inc 2010-05-12 00:32:32 UTC (rev
299271)
@@ -1,3 +1,5 @@
<?php
include __DIR__ . '/../test_framework.php.inc';
-mkdir(MYDIR . DIRECTORY_SEPARATOR . 'testit');
+if (!is_dir(MYDIR . DIRECTORY_SEPARATOR . 'testit')) {
+ mkdir(MYDIR . DIRECTORY_SEPARATOR . 'testit');
+}