weregod
unserializer
Windows 10, под Ubuntu 18.04.3 LTS проверял только на PHP 7.4
PHP 5.6
PHP 7.2
PHP 7.3 и 7.4 молча удаляют файл (((
PHP:
error_reporting(E_ALL);
$path = "./file";
file_put_contents($path, "stuff");
$file = fopen($path, "r");
flock($file, LOCK_EX);
unlink($path);
Warning: unlink(./file): Permission denied in ...
PHP 7.2
Warning: unlink(./file): Resource temporarily unavailable in ...
PHP 7.3 и 7.4 молча удаляют файл (((