PHP ClamAV - ClamAV Interface for PHP5 Scripts PHP-ClamAV is a PHP5 extension that allows to incorporate virus scanning features on your PHP5 scripts. It uses the Clam AV API for virus scanning.
- Extend your PHP code with antivirus file scanning
- Support ClamAV from 0.95.x to 0.97.x
- Support PHP 5.3 and 5.4
- Support for DEB and RPM building packages
no trouble to install and run, works nicely.
php-clamav is small and works nicely
It worked very well in PHP 5.3 (on debian squeeze) for my low-scan volume needs, but with PHP 5.4, both version 15.6 and 15.5 failed to build, with the error notice: php-clamav-0.15.6/clamav.c:71: error: ‘clamav_functions’ undeclared here (not in a function)
I am waiting to test out the memory hog issues stated but install and functionality work well so far.
Installed without a hitch on CentOS5 x86 Xen DomU running PHP 5.2.14 (upgraded using RPMs). The problem is the clamav virus database gets loaded into *each* Apache process. That means memory usage per process has jumped from ~16MB, to ~170MB!! COMPLETELY unacceptable. However, I think the project can be recommended if it can be made "production" ready.