Closed jefft closed 2 weeks ago
Code like this which appends an extension to tempnam() is always bad:
tempnam()
$zipFilename = tempnam(sys_get_temp_dir(), 'jethrozip').'.zip';
because:
/tmp/jethrozipXXXX
$zipFilename
/tmp/jethrozipXXXX.zip
Actually, this bit of code looks unused. I can't see any way to get a zip of Documents files.
Code like this which appends an extension to
tempnam()
is always bad:because:
tempnam()
actually creates a file/tmp/jethrozipXXXX
$zipFilename
is set to/tmp/jethrozipXXXX.zip
$zipFilename
is used/tmp/jethrozipXXXX
is still there