ID:               39113
 Comment by:       youza at post dot cz
 Reported By:      manuel at mausz dot at
 Status:           Open
 Bug Type:         *Web Server problem
 Operating System: Linux
 PHP Version:      4.4.4
 New Comment:

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....


Previous Comments:
------------------------------------------------------------------------

[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 http://bugs.php.net/?id=39113&edit=1

Reply via email to