PHP-YUI-Compressor
PHP-YUI-Compressor copied to clipboard
Use tempnam() for temporary filenames to avoid collisions completely
Just a suggestion... change the following to use PHP's tempnam() function to avoid all chance of collision
$input_hash = sha1($this->string);
$file = $this->TEMP_FILES_DIR . '/' . $input_hash . '.txt';
implemented in https://github.com/bkdotcom/PHP-YUI-Compressor
additionally, uses sys_get_temp_dir() as a default temp_dir