cl_scanfile does not return if $virusname is blank string
Brought to you by:
argos66
The following code causes the Apache server never to deliver a HTTP response:
$virusname = '';
$result = cl_scanfile( $filename, $virusname );
The following definitions of $virusname work:
$virusname = null;
$virusname = 123;
NOTE: the Apache server does give a HTTP response if $virusname = ''; and there is a virus found
test case
Please can you try with lasted 0.15.7 ?
This problem doesn't appear on php 5.5 with php-clamav 0.15.7 or current svn version.