symphonycms/jit_image_manipulation — comment on commit 728adf15c9db31f2453baca6b6888cb318fb956f
File:  line 0
By brendo:

> Also: I just noticed the files written in my $upload_tmp_dir are still there... I was under the assumption that those temp files would be removed by the PHP script. Maybe that only goes for /tmp ? Is this a potential issue?

Well typically that's what you do in your script when uploading images. You move the file from it's temporary location to where you want it to go, so I'm not sure PHP will actually monitor this folder.

> Could there be issues with `ini_get()` on some shared hosting environments, for example?

I have concerns about this as well.

> The only scenario for failure I can think of is when `$upload_tmp_dir` is not writable/accessible and `sys_get_temp_dir()` is not accessible because of an `open_basedir` restriction.

Yeah, so our preference would be `sys_get_temp_dir()`, `upload_tmp_dir`, `TMP`.