Re: Re: new extension

From: Date: Tue, 20 Oct 2009 16:24:11 +0000
Subject: Re: Re: new extension
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-6715@lists.php.net to get a copy of this message
On 20.10.2009, at 20:19, mohan L wrote:
On Tue, Oct 20, 2009 at 9:27 PM, Alexey Zakhlestin <indeyets@gmail.com> wrote: On 20.10.2009, at 19:42, mohan L wrote: Deal All, I have created a new extension:bogoclassify . Bogoclassify is a php extension to 'Bogofilter'. Bogoclassify extension comes with a php function called bogoclassify_match().You can use this to classify given content are spam or ham (non-spam) and it also return the spamscore.This extension is completed and would like to release beta version, It will help me to enhance and add new future depending upon user requrement. So I would like to add this extension in PECL SVN. 1).I don't have any link to the project. If you guys want to see the source. I will attach it . 2).I would like to release under PHP License 3.01 Thanks & Rg Mohan L Do you link your extension with bogofilter itself or use some kind of rpc for communications? bogoclassify_match() This function expect two argument, first argument is keyword(ham,spam,ham2spam,spam2ham,classify,spamscore) and the second argument is content you wish to classify ham or spam (or get spamscore).Depending upon the keyword and content the extension will return spamscore . I am using like popen call to execute bogofilter. You see, the problem is, that bogofilter is GPL-licensed, which makes it incompatible with php. what is the solution? I am not expert in license related issue .please suggest me . On the other hand, if no direct linkage is used everything is fine. PHP_INI_ENTRY("bogoclassify.exepath","/usr/local/bin/bogofilter",PHP_INI_SYSTEM,NULL) In my application this one line code only specifies path of bogofilter .other than this there is no direct link to bogofilter .
then everything is fine. p.s. do not forget to use "reply to all" while replying to emails from list

« previous php.pecl.dev (#6715) next »