[php-maint] Bug#515782: move_uploaded_file() warnings

jakub nantl jakub.nantl at ha-vel.cz
Tue Feb 17 16:37:09 UTC 2009


Package: libapache2-mod-php5 
Version: 5.2.0-8+etch13

move_uploaded_file() prints warning about  open_basedir restriction. It prints 
only the warning, uploaded file is successfully  moved. according to 
documentation open_basedir check is applied only for destination not the 
source file..

output of example code from: 
http://cz.php.net/manual/en/features.file-upload.post-method.php

Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir 
restriction in effect. File(/var/tmp/php/phpr9Tg2e) is not within the allowed 
path(s): (/home/www) in /home/www/u.php on line 11
File is valid, and was successfully uploaded.

both safe_mode and open_basedir are set.  upload_tmp_dir is outside 
open_basedir






More information about the pkg-php-maint mailing list