My server is running php-fpm with nginx. I had applied these permissions.
sudo chgrp -R www-data /usr/share/nginx/html
sudo chmod -R g+rw /usr/share/nginx/html
sudo chmod g+s /usr/share/nginx/html
I have this code.
if(function_exists("my_void_function")){
echo "exist";
}else{
echo "none exist";
}
I am getting different result that simple code. you can see screenshot of my pc from this image.