Re: [INTERNALS-WIN] PHP clamav on windows
| From: | Ángel González | Date: | Sun, 19 Dec 2010 22:35:48 +0000 |
| Subject: | Re: [INTERNALS-WIN] PHP clamav on windows | ||
| References: | 1 2 3 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-744@lists.php.net to get a copy of this message | ||
Jean-François COUÏC wrote:
> Hihi,
>
> Here the copy of the licence header in the clamav.c file in the project.
> /*
> * Copyright (C) 2009 Argos <argos66@gmail.com>
> * Copyright (C) 2005 Geffrey Velasquez Torres <geffrey@gmail.com>
> *
> * This program is free software; you can redistribute it and/or modify
> * it under the terms of the GNU General Public License as published by
> * the Free Software Foundation; either version 2 of the License, or
> * (at your option) any later version.
> *
> * This program is distributed in the hope that it will be useful,
> * but WITHOUT ANY WARRANTY; without even the implied warranty of
> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> * GNU General Public License for more details.
> *
> * You should have received a copy of the GNU General Public License
> * along with this program; if not, write to the Free Software
> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
> USA.
> */
>
> it seem that is a GPL.
> Yes or No ?
> regards
> jean-françois
It is GPL.
However, a php clamav extension could connect with the clamav daemon via a
socket (on windows that'll probably be a named pipe) instead of linking
and doing
the work itself.
Jean-François, have you tried simply calling clamscan/clamdscan executable passing
the new filename as a parameter?
That seems much easier than doing a php extension.