PHP built-in server deletes server file (Windows)
I'm having an issue with PHP's built-in server. When using it, it randomly deletes the server.php file, and I'm unable to get it back via git because of a permission issue.
My installation information :
PHP 7.1.1 (cli) (built: Jan 18 2017 18:51:14) ( ZTS MSVC14 (Visual C++ 2015) x86 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
And Windows :
Windows 10 Family Version 1703 OS version 15063.674
Ok, when trying to reproduce the issue to post it there, an Avast pop-up window appeared. It seems my php file had been tagged as malicious and was therefore quarantined.
Adding it to Avast's whitelist solved the issue.