ConFoo Montreal 2026: Call for Papers

Voting

: six plus one?
(Example: nine)

The Note You're Voting On

v-mafick at microsoft dot com
12 years ago
Users should set the `sys_temp_dir` directive.

PHAR stores temporary files in either `sys_temp_dir` or the current working directory(CWD).

This is especially important if you're CWD is on a remote file system. Often web server clusters will share a common file system between each web server (using NFS, DFS, etc...). In such scenarios, if you don't set `sys_temp_dir` to a local directory, PHAR will be creating temporary files over the network, which will result in performance and functionality problems.

<< Back to user notes page

To Top