8 * A temporary file/directory name
18 * @param string $prefix uniqid() prefix
19 * @param string $suffix e.g. file extension
21 public function __construct($prefix, $suffix = null) {
22 $temp = sys_get_temp_dir() . "/pharext-" . posix_getlogin();
23 if (!is_dir($temp) && !mkdir($temp, 0700, true)) {
26 $this->name
= $temp ."/". uniqid($prefix) . $suffix;
32 public function __toString() {
33 return (string) $this->name
;