Re: [INTERNALS-WIN] PHP clamav on windows
[email protected] ("Ángel González")
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > * Copyright (C) 2005 Geffrey Velasquez Torres <[email protected]> > * > * 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.