when i execute .exe file from php , bitdefender caught the .exe file as infected ( but not if i double clicked it )
my .exe file is very simple and can't be infected (compiled with visual studio express 2013 )
#include<stdio.h>
int main(int argc, char* argv[]){
printf("Hello World!\nnumber of argument is %i\n", argc);
for (int i = 0; i<argc; i++){
printf("argv[%i] is %s\n", i, argv);
}
return 10;
}
and the php code that run the code is
<?php
exec('test.exe', $out);
echo '<pre>';
var_dump($out);
echo '</pre>';
i fixed it with add the directory to the excluded but i just wanted you to know that's there is maybe something wrong with the antivirus
windows 10 pro x64 Build 10586
php 7.0.2
bitdefender internet security 2016
visual studio express 2013