ID:               41174
 Updated by:       [EMAIL PROTECTED]
 Reported By:      valqk at lozenetz dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: FreeBSD 6.2
 PHP Version:      5.2.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.


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

[2007-04-24 07:34:51] valqk at lozenetz dot net

Description:
------------
I've found a bug report like this but it was with state closed.
This _is_ a bug or at least a lack of features.

There must be a way to set tmp-file creation of this functions, but
setting TMPDIR environment variable doesn't work each time. I don't
want to
include /tmp dir in open_basedir directories.

Reproduce code:
---------------
<?php
putenv('TMPDIR=/home/vhosts/test.com/httpd/tmp');
echo getenv('TMPDIR');
$cnid = ftp_connect("example.com");
$login_result = ftp_login($cnid, "user", "pass");
$out = ftp_rawlist($cnid, '/');
ftp_close($cnid);
print_r($out);
?>

Expected result:
----------------
listing of files


Actual result:
--------------
/home/vhosts/test.com/httpd/tmp
Warning: ftp_rawlist() [function.ftp-rawlist]: open_basedir
restriction
in effect. File(/tmp) is not within the allowed path(s):
(/home/vhosts/test.com/httpd/tmp:/usr/lib/php:/usr/local/lib/php) in
/home/vhosts/test.com/httpd/tmphtdocs/a.php on line 15

Warning: ftp_rawlist() [function.ftp-rawlist]: Unable to create
temporary file. Check permissions in temporary files directory. in
/home/vhosts/test.com/httpd/htdocs/a.php on line 15
bool(false) 


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


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

Reply via email to