diff options
| author | Ant Phillips <ant@php.net> | 2008-04-24 13:58:26 +0000 |
|---|---|---|
| committer | Ant Phillips <ant@php.net> | 2008-04-24 13:58:26 +0000 |
| commit | 2667f76d7b7f3fce7bc5a8374632dce5e34cb0b6 (patch) | |
| tree | d2375ee2c4e0452bea7cfd011cc8d4df8c288be9 | |
| parent | 9fecb8fa607d304d7f124cf9cd5c107c648088a3 (diff) | |
| download | php-git-2667f76d7b7f3fce7bc5a8374632dce5e34cb0b6.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; |
