cvs: php-src /ext/standard/tests/file open_basedir.inc
| From: | Ant Phillips | Date: | Thu, 24 Apr 2008 13:58:27 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/file open_basedir.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-49729@lists.php.net to get a copy of this message | ||
ant Thu Apr 24 13:58:27 2008 UTC
Modified files:
/php-src/ext/standard/tests/file open_basedir.inc
Log:
Allow for chmod() to fail on symbolic links
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/open_basedir.inc?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/file/open_basedir.inc
diff -u php-src/ext/standard/tests/file/open_basedir.inc:1.1
php-src/ext/standard/tests/file/open_basedir.inc:1.2
--- php-src/ext/standard/tests/file/open_basedir.inc:1.1 Wed Apr 23 14:10:12 2008
+++ php-src/ext/standard/tests/file/open_basedir.inc Thu Apr 24 13:58:27 2008
@@ -43,7 +43,7 @@
if (is_dir($path) == TRUE) {
recursive_delete_directory($path);
} else {
- chmod($path, 0777);
+ @chmod($path, 0777);
unlink($path);
}
}
@@ -51,7 +51,7 @@
}
closedir($handle);
- chmod($directory, 0777);
+ @chmod($directory, 0777);
rmdir($directory);
return TRUE;