diff options
author | Ant Phillips <ant@php.net> | 2008-04-24 13:58:27 +0000 |
---|---|---|
committer | Ant Phillips <ant@php.net> | 2008-04-24 13:58:27 +0000 |
commit | dedb146a691249b72cd583cc3c3f4cb56c4eabd3 (patch) | |
tree | e69cee9cc709e73290f3a1a25f4dd1506888ad6e | |
parent | 09c7d212379dfe1ae76ac48eef795804f2f3cd5d (diff) | |
download | php-git-dedb146a691249b72cd583cc3c3f4cb56c4eabd3.tar.gz |
Allow for chmod() to fail on symbolic links
-rw-r--r-- | ext/standard/tests/file/open_basedir.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/tests/file/open_basedir.inc b/ext/standard/tests/file/open_basedir.inc index 533bd812a6..7fd0afc8bb 100644 --- a/ext/standard/tests/file/open_basedir.inc +++ b/ext/standard/tests/file/open_basedir.inc @@ -43,7 +43,7 @@ function recursive_delete_directory($directory) { if (is_dir($path) == TRUE) { recursive_delete_directory($path); } else { - chmod($path, 0777); + @chmod($path, 0777); unlink($path); } } @@ -51,7 +51,7 @@ function recursive_delete_directory($directory) { } closedir($handle); - chmod($directory, 0777); + @chmod($directory, 0777); rmdir($directory); return TRUE; |