Skip to content

Commit

Permalink
add support for osx
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Jul 1, 2016
1 parent ddddd73 commit 9507d58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Binary file added bin/libsvm/svm-predict-osx
Binary file not shown.
Binary file added bin/libsvm/svm-scale-osx
Binary file not shown.
Binary file added bin/libsvm/svm-train-osx
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Phpml/SupportVectorMachine/SupportVectorMachine.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ public function predict(array $samples)
*/
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 '';
Expand Down

0 comments on commit 9507d58

Please sign in to comment.