com php-src: fix test which fails if prevous run cleanup failed: ext/standard/tests/file/bug65701.phpt
| From: | Anatol Belski | Date: | Fri, 12 Sep 2014 19:35:24 +0000 |
| Subject: | com php-src: fix test which fails if prevous run cleanup failed: ext/standard/tests/file/bug65701.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81528@lists.php.net to get a copy of this message | ||
Commit: 5257ac492596d220990a43a98aad6c29f376639f
Author: Anatol Belski <ab@php.net> Fri, 12 Sep 2014 17:01:53 +0200
Parents: 95a50f7322ad9ba5fc41ae4433adb8214c15a7d7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5257ac492596d220990a43a98aad6c29f376639f
Log:
fix test which fails if prevous run cleanup failed
Changed paths:
M ext/standard/tests/file/bug65701.phpt
Diff:
diff --git a/ext/standard/tests/file/bug65701.phpt b/ext/standard/tests/file/bug65701.phpt
index 2b1b5d4..42d8d3e 100644
--- a/ext/standard/tests/file/bug65701.phpt
+++ b/ext/standard/tests/file/bug65701.phpt
@@ -6,7 +6,9 @@ Boro Sitnikovski <buritomath@yahoo.com>
<?php
$file_path = dirname(__FILE__) . "/bug65701/";
-mkdir($file_path);
+if (!is_dir($file_path)) {
+ mkdir($file_path);
+}
$src = $file_path . '/srcbug65701_file.txt';
$dst = tempnam($file_path, 'dstbug65701_file.txt');