cvs: php-src(PHP_5_2) /ext/standard/tests/file open_basedir.inc

From: Date: Thu, 24 Apr 2008 13:58:29 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard/tests/file open_basedir.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-49730@lists.php.net to get a copy of this message
ant Thu Apr 24 13:58:29 2008 UTC Modified files: (Branch: PHP_5_2) /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.4.2&r2=1.1.4.3&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.4.2 php-src/ext/standard/tests/file/open_basedir.inc:1.1.4.3 --- php-src/ext/standard/tests/file/open_basedir.inc:1.1.4.2 Wed Apr 23 14:10:23 2008 +++ php-src/ext/standard/tests/file/open_basedir.inc Thu Apr 24 13:58:29 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;

« previous php.cvs (#49730) next »