equal
deleted
inserted
replaced
5712 // Return Values : |
5712 // Return Values : |
5713 // The path translated. |
5713 // The path translated. |
5714 // -------------------------------------------------------------------------------- |
5714 // -------------------------------------------------------------------------------- |
5715 function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) |
5715 function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) |
5716 { |
5716 { |
5717 if (stristr(php_uname(), 'windows')) { |
5717 if (PHP_OS_FAMILY == 'Windows') { |
5718 // ----- Look for potential disk letter |
5718 // ----- Look for potential disk letter |
5719 if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { |
5719 if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { |
5720 $p_path = substr($p_path, $v_position+1); |
5720 $p_path = substr($p_path, $v_position+1); |
5721 } |
5721 } |
5722 // ----- Change potential windows directory separator |
5722 // ----- Change potential windows directory separator |