svn: /pear2/Pyrus/trunk/tests/AtomicFileTransaction/ setup.empty.php.inc
[email protected] (Brett Bieber)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
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');
+}