Comment 2 for bug 386457

Revision history for this message
amiroot (amiroot) wrote :

Despite the patch compile without error by using patch php-clamavlib_0.13-1.2ubuntu1~hardy4.diff, the module actually is not functioning.

1. the arguement count in setlimits is wrong, it should receive 4 argument instead of 5 (line 478 and line 494 clamav.c)
2. I find that the cl_engine can't initiate in MINIT. I find that cl_scanfile won't work unless I initiate the engine everytime before the cl_scanfile is called (by adding cl_engine initiation code before line 417 clamav.c) but I think the module shouldn't work like this

Sorry that I'm not familiar with C and PHP module programming and I don't know how to create a patch. I'm using RHEL5 Linux with PHP 5.2.10. I tried this module under apache and PHP CLI (i.e. shell script). Thanks