ID: 37236 Updated by: [EMAIL PROTECTED] Reported By: youza at post dot cz -Status: Open +Status: Assigned Bug Type: *Directory/Filesystem functions Operating System: fedora core 4 PHP Version: 4CVS-2006-04-28 (snap) -Assigned To: +Assigned To: pollita
Previous Comments: ------------------------------------------------------------------------ [2006-04-28 11:31:25] youza at post dot cz 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 this bug report at http://bugs.php.net/?id=37236&edit=1
