View Issue Details

IDProjectCategoryView StatusLast Update
0006652mantisbtbugtrackerpublic2006-01-30 18:05
ReporterpogikAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.0.0rc5 
Target VersionFixed in Version 
Summary0006652: File uploads failing when open_basedir restriction set in PHP
Description

When open_basedir is set in PHP, it's unable access the uploaded file in the temporary directory.

core/file_api.php:508-510:
is_readable() is allways returning false -> causing ERROR_UPLOAD_FAILURE

core/file_api.php:553-555:
filesize() returning length 0 bytes -> causing ERROR_FILE_NO_UPLOAD_FAILURE

this is wrong - file upload fails, even if everything is correct - when these 2 parts are commented out, upload will succeed, because move_uploaded_file() used later is designed for working even with open_basedir restriction - unlike is_readable() or filesize() and others

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2006-01-30 18:05 pogik New Issue