ID:               27559
 User updated by:  viktors at rotanovs dot com
 Reported By:      viktors at rotanovs dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Linux
-PHP Version:      4.3.5RC3
+PHP Version:      4-STABLE
 New Comment:

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.


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

[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