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

Yes, that's what I thought. *Generally* `$upload_tmp_dir` would be the same as the path returned from `sys_get_temp_dir()` I guess.

My *assumption* is that `$upload_tmp_dir` would be set correct *most* of the time while there *could* be issues with `sys_get_temp_dir()`.

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.

Is `$dest = tempnam(ini_get('upload_tmp_dir'), 'IMAGE');` the best way to implement it though? Could there be issues with `ini_get()` on some shared hosting environments, for example?