]> granicus.if.org Git - php/commitdiff
potential major booboo in unit test, probably won't affect this one
authorGreg Beaver <cellog@php.net>
Mon, 1 Dec 2003 04:04:07 +0000 (04:04 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 1 Dec 2003 04:04:07 +0000 (04:04 +0000)
pear/tests/pear_common_downloadHttp.phpt

index 39712221d95b0a15442a11d29bc0af473e806ed5..b11d904191324d920a8f310214929150c6a06344 100644 (file)
@@ -93,7 +93,7 @@ function cleanall($dir)
         if ($ent == '.' || $ent == '..') {
             continue;
         }
-        if (is_dir($ent)) {
+        if (is_dir($dir . DIRECTORY_SEPARATOR . $ent)) {
             cleanall($dir . DIRECTORY_SEPARATOR . $ent);
         } else {
             unlink($dir . DIRECTORY_SEPARATOR . $ent);