#37236 [NEW]: Function move_uploaded_file(): canot work in snap 200604281030
| From: | youza at post dot cz | Date: | Fri, 28 Apr 2006 11:31:25 +0000 |
| Subject: | #37236 [NEW]: Function move_uploaded_file(): canot work in snap 200604281030 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-96320@lists.php.net to get a copy of this message | ||
From: youza at post dot cz
Operating system: fedora core 4
PHP version: 4CVS-2006-04-28 (snap)
PHP Bug Type: *Directory/Filesystem functions
Bug description: Function move_uploaded_file(): canot work in snap 200604281030
Description:
------------
Function move_uploaded_file() work fine in
php4-STABLE-200602010935.tar.gz
but not work in last php4-STABLE-200604281030.tar.gz
the code www page, directory structure and permission and apache,
configuration is the same.
Error message:
[28-Apr-2006 12:28:16] PHP Warning: move_uploaded_file(): open_basedir
restriction in effect. File(/tmp/php0FDyAV) is not within the allowed
path(s): (/my/web/path) in /my/web/path/upload/upload.php on line 53
[28-Apr-2006 12:28:16] PHP Warning: move_uploaded_file(/tmp/php0FDyAV):
failed to open stream: Operation not permitted in
/my/web/path/upload/upload.php on line 53
[28-Apr-2006 12:28:16] PHP Warning: move_uploaded_file(): Unable to move
'/tmp/php0FDyAV' to 'upload/php0FDyAV' in /my/web/path/upload/upload.php
on line 53
How is problem in ext/standard/file.c ???
the chages:
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/file.c?r1=1.279.2.70.2.6&r2=1.279.2.70.2.7&pathrev=PHP_4_4
Reproduce code:
---------------
move_uploaded_file($file, $destination);
--
Edit bug report at http://bugs.php.net/?id=37236&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37236&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37236&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37236&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37236&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37236&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37236&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37236&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37236&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37236&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37236&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37236&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37236&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37236&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37236&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37236&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37236&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37236&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37236&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37236&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37236&r=mysqlcfg