ID:               27559
 Updated by:       [EMAIL PROTECTED]
 Reported By:      viktors at rotanovs dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Linux
 PHP Version:      4CVS-2004-03-11
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2004-03-12 13:02:49] viktors at rotanovs dot com

move_uploaded_file() has no problems with the snapshot. 

so, the bug is now only in tempnam() function.

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

[2004-03-12 12:55:07] viktors at rotanovs dot com

I installed latest CVS snapshot as you recommended, and 

PHP changed behaviour: 

1) there is no error message in php error log now 

2) tempnam still doesn't return temporary filename 

I've written tempnam replacement, which works: 

 

function inbox_tempnam($dir, $prefix) { 

        return $dir . '/' . uniqid($prefix, 1); 

} 

 

It seems that the problem with copy() function was my 

mistake. I'll check move_uploaded_file() now.

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

[2004-03-11 09:17:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2004-03-10 21:08:19] viktors at rotanovs dot com

Description:
------------
I get the following message when using tempnam() function:



tempnam(): open_basedir restriction in effect. File(/opt/tmp/php) is
not within the allowed path(s):
(/www:/opt/php/lib/php:/opt/tmp/uploads:/etc/usermap:/opt/tmp/php) in
/www/foto.inbox.lv/util.php on line 1492



Note that /opt/tmp/php _is_ within a list of allowed paths. Similar
errors with copy() and move_uploaded_file().



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


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

Reply via email to