add support for osx

This commit is contained in:
Arkadiusz Kondas 2016-07-01 22:25:57 +02:00
parent ddddd739f4
commit 9507d58a80
4 changed files with 4 additions and 1 deletions

BIN
bin/libsvm/svm-predict-osx Normal file

Binary file not shown.

BIN
bin/libsvm/svm-scale-osx Normal file

Binary file not shown.

BIN
bin/libsvm/svm-train-osx Normal file

Binary file not shown.

View File

@ -193,8 +193,11 @@ class SupportVectorMachine
*/
private function getOSExtension()
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$os = strtoupper(substr(PHP_OS, 0, 3));
if ($os === 'WIN') {
return '.exe';
} elseif ($os === 'DAR') {
return '-osx';
}
return '';