Edit report at https://bugs.php.net/bug.php?id=39113&edit=1

 ID:                 39113
 User updated by:    manuel at mausz dot at
 Reported by:        manuel at mausz dot at
 Summary:            general tmpdir directive
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   Linux
 PHP Version:        4.4.4
 Block user comment: N
 Private report:     N

 New Comment:

see #60524


Previous Comments:
------------------------------------------------------------------------
[2006-10-16 10:30:22] youza at post dot cz

See this bugs - the similiar problem in my opinion afected 
other functions.

http://bugs.php.net/bug.php?id=37236
http://bugs.php.net/bug.php?id=38934

Yes - the  goot  solution is  the new "super directive"
"global_php_temp_dir" ( or other )  this settings  automatically addes fo the  
"local" directives - example for
open_basedir - apache config:

php_admin_value global_open_basedir = /xxxx

<Virtual ....>
php_admin_value open_basedir  /my/openbasedir
..
</Virtual..>

the result:
  open_basedir = /xxxx:/my/openbasedir

etc....

------------------------------------------------------------------------
[2006-10-16 07:55:32] manuel at mausz dot at

Same problem for tmpfile() which also has no temp-dir argument.

So the only way to solve this is either define P_tmpdir or set TMPDIR in 
environment?

------------------------------------------------------------------------
[2006-10-11 11:28:12] manuel at mausz dot at

Hmm. Any ideas/comments on this?

------------------------------------------------------------------------
[2006-10-10 12:43:19] manuel at mausz dot at

Description:
------------
Regarding http://bugs.php.net/bug.php?id=38963.

Many php functions (e.g. ftp_nlist) require the creation of a temporary file. 
As there is no ini setting for a temp-directory, php tries to use TMPDIR from 
environment or falls back to P_tmpdir and /tmp. In most web setups /tmp isn't 
included in open_basedir and P_tmpdir not even defined. Thus such functions 
fails.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=39113&edit=1

Reply via email to