Issue 579 fixed a problem of chmod command on windows

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10392 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2012-03-08 06:39:34 +00:00
parent 1b2cff71bc
commit f29fb40ba7

View file

@ -373,7 +373,7 @@
return new Object(-1, "msg_make_directory_failed");
}
if(!stristr(PHP_OS, 'win'))
if(strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN')
{
if (function_exists('ftp_chmod')) {
if(!ftp_chmod($this->connection, 0755, $ftp_path))