76 Commits

Author SHA1 Message Date
Jean-Baptiste Nahan
0c26d90542 Fix zend_ce_exception for PHP 8.5 2025-10-07 17:52:13 +02:00
Remi Collet
4a96a81851 Nice formatting for libsvm version 2018-08-20 16:10:38 +02:00
Remi Collet
65757146bf fix -Wunused-variable 2018-08-20 16:08:09 +02:00
Anatol Belski
e157878ebd Fix phpinfo(), closes #18 2018-08-20 15:58:18 +02:00
Anatol Belski
30fc806dee Use zend_parse_parameters_none() where appropriate 2018-08-20 10:39:22 +02:00
Anatol Belski
e0c3cff823 Generalize object fetching code 2018-08-20 10:25:11 +02:00
Anatol Belski
3f8589478b Show libsvm version with phpinfo() 2018-08-19 12:16:33 +02:00
Anatol Belski
b50477747c Don't do that big version flip
Also fix the version macro name, so PECL and other places can read the
version.
2018-08-18 18:36:45 +02:00
Anatol Belski
07fcafa1ec Remove unnecessary check 2018-08-18 16:59:13 +02:00
Anatol Belski
41682c4757 Fix datatype 2018-08-18 16:58:48 +02:00
Anatol Belski
4ef7f79887 Macrify x space allocation 2018-08-18 16:35:48 +02:00
Anatol Belski
63513466cc Get rid of global var 2018-08-18 16:35:48 +02:00
Anatol Belski
5249c63442 Remove dead line 2018-08-18 16:35:48 +02:00
Ian Barber
70389f0a43 Clarify licensing
Files had an erroneous PHP header, but project was licensed under PHP.
Update the licensing. Also update the copyright from me to the authors,
as represented in CREDITS.
2018-08-17 08:39:42 -07:00
Anatol Belski
70dfee91b3 Fix folds 2018-08-06 16:58:57 +02:00
Anatol Belski
ab9480b5cc Fix -Wformat-security warnings 2018-08-06 16:51:28 +02:00
Anatol Belski
ac59cfb9c0 Drop unused vars 2018-08-06 10:40:54 +02:00
Anatol Belski
24ca10bde0 Fix datatypes 2018-08-06 10:39:47 +02:00
Anatol Belski
e5312748ed Remove unnecessary casts 2018-08-06 10:36:42 +02:00
Anatol Belski
b0b486bcea Remove TSRMLS_* stuff 2018-08-06 10:35:57 +02:00
Echobot
a55bb1e1cc Upgraded to PHP7 2018-08-05 22:03:48 +02:00
Ian Barber
4466aeea1d Fix win and mac compiler warnings
Verified with latest build of libsvm (3.14). Tweaked some types to avoid a bunch of smallish compiler warnings.
2012-11-23 19:07:03 +00:00
Ian Barber
ab14ba4c09 Fix issue #2
Macro was expanding to include a blank return statement - should not
occur with no_verify variant of php_stream_from_zval
2012-09-16 14:07:32 +01:00
Ian Barber
6eb8de3b7d Fix support for older libsvm versions 2012-06-06 16:34:05 +01:00
Ian Barber
e86da8bb41 Adding info methods 2012-01-20 23:28:43 +00:00
Rasmus Lerdorf
64c1d5232f PHP 5.4 fixes 2012-01-14 22:07:19 -08:00
Ian Barber
4a6ccaaece Tweaks to get windows build working 2012-01-10 14:03:22 +00:00
Ian Barber
23091cd976 Fixing predict probabilities 2011-12-18 00:53:01 +00:00
Ian Barber
6c1390f5ee Integrating Predict Probability patches from Neel Upadhyaya, and a little refactoring 2011-07-21 08:10:45 +01:00
Ian Barber
77e82d7492 Removing weights parameters, and adding boolean options for shrinking and probability 2011-05-17 08:25:34 +01:00
Ian Barber
c156c36e5a Fixing issue with nr_weights being uninitialised, and different free methods in 3.0 and above libsvm 2011-05-13 13:42:11 +01:00
Ian Barber
a86bd59992 Updating based on feedback from Johannes 2011-04-27 10:49:49 +01:00
Ian Barber
ec8a2406b4 Fixing tests 2011-04-22 22:52:49 +01:00
Ian Barber
fcb7203589 Fixing doubles issue 2011-04-21 13:57:03 +01:00
Ian Barber
3c55c4b3e2 Updating to handle latest lib 2011-03-31 21:16:23 +01:00
Ian Barber
7c35b28f7f adding php documentation, just the basics currently 2010-03-20 10:23:09 +00:00
Ian Barber
78cee35435 modified training data array format 2010-03-05 23:16:17 +00:00
Ian Barber
3602488615 adding support for weights on training 2010-03-05 20:27:52 +00:00
Ian Barber
e1c2fa6465 adding some validation around kernel types 2010-03-05 19:14:55 +00:00
Ian Barber
49b73799f8 bad file handling 2010-03-05 19:02:59 +00:00
Ian Barber
eb64c708d8 tidying up 2010-03-05 18:42:50 +00:00
Ian Barber
c4a6951ef4 Crossvalidation working 2010-03-05 18:27:20 +00:00
Ian Barber
1cf7112697 initial push of cross validate changes - note that there still are some mem leak problems, and the cross validate stuff isnt quite working 2010-03-04 23:08:12 +00:00
Ian Barber
092a8bf5b2 Merge branch 'master' of git://github.com/mkoppanen/php-svm 2010-03-04 16:15:10 +00:00
Ian Barber
48c21b0431 adding more kernel tests 2010-03-04 16:14:50 +00:00
Mikko Koppanen
293f6a4917 Training from array. Might be better in separate method 2010-03-01 20:51:22 +00:00
Mikko Koppanen
cd8b1ddf85 Fix mem alloc errors 2010-03-01 09:24:21 +00:00
Ian Barber
8a8ffaee80 merging mikkos changes, updating tests, and tweaking memory alloc issue 2010-03-01 08:37:34 +00:00
Mikko Koppanen
b7acb60f5c Moved all the model related functionality to SvmModel class 2010-02-28 23:05:29 +00:00
Mikko Koppanen
f7112ca752 Fix crash when saving when model does not exist 2010-02-28 22:32:28 +00:00