#17756508 : change newline into PHP_EOL to make it compatible to windows

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5805 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-03-09 03:47:57 +00:00
parent 2aff676b6d
commit 35c15f5da6

View file

@ -80,8 +80,7 @@
);
$buff = $this->execCmd($command, $error);
$list = explode("\n",$buff);
$list = explode(PHP_EOL,$buff);
if(!count($list)) return null;
@ -365,7 +364,7 @@
function explodePath($source_path, $is_file = false) {
if(!$source_path) return;
$source_path = rtrim($source_path);
$arr_path = explode('/', $source_path);
if(substr($source_path,-1)!='/') $file = array_pop($arr_path);