ID:               40141
 Updated by:       [email protected]
 Reported By:      flobee at gmail dot com
-Status:           No Feedback
+Status:           Closed
 Bug Type:         *Directory/Filesystem functions
 Operating System: debian etch
 PHP Version:      5.2.0
 New Comment:

Fixed already in all releases.


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

[2010-02-25 01:51:34] sebastian at hometronix dot de

I had the same problem a few days ago, but now it works fine.

I just changed:

php_admin_value open_basedir "/home/somthing/:/tmp/"

-->

php_admin_value open_basedir /home/somthing/:/tmp

Try it!

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

[2007-01-24 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

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

[2007-01-16 08:25:44] [email protected]

Make sure /tmp/ is not a symlink.


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

[2007-01-16 01:13:59] flobee at gmail dot com

Description:
------------
using php_admin_value open_basedir "/home/somthing/" in vhosts i get
problems to run the function tmpfile()


vhost setting:
 php_admin_value open_basedir "/home/somthing/:/tmp/"

or tested with ... does the same error:
 php_admin_value open_basedir "/home/somthing/"



without open_basedir the function works like expected :-/

Reproduce code:
---------------
<?php
// --- tests
-----------------------------------------------------------
<?php
$temp = tmpfile();
fwrite($temp, "writing to tempfile");
fseek($temp, 0);
echo 'x:'.fread($temp, 1024);
fclose($temp); // this removes the file
//----------------------------------------------------------------------
?>

Actual result:
--------------
Warning: tmpfile() [function.tmpfile]: open_basedir restriction in
effect. File(/tmp) is not within the allowed path(s): (/home/abc/:/tmp/)
in index.php on line 123


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


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

Reply via email to