Bug #13095 [Opn]: destDir does not exist - no error returned

From: Date: Tue, 10 Mar 2009 12:27:23 +0000
Subject: Bug #13095 [Opn]: destDir does not exist - no error returned
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-127@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=13095&edit=1 ID: 13095 Updated by: ken@linux.ie Reported By: till at php dot net Summary: destDir does not exist - no error returned Status: Open Type: Bug Package: HTTP_Upload Package Version: 0.9.1 PHP Version: 5.2.0 Roadmap Versions: New Comment: this appears to be fixed. tried the sample code myself; got the following message: "Upload error: The destination directory doesn't exist or is a regular file" - created the uploads directory and it just worked (tm) (got a "File was moved to" message instead). Previous Comments: ------------------------------------------------------------------------ [2008-10-22 10:27:41] till PSSST! Example code, is example code, is example code. :P http://pear.php.net/manual/en/package.http.http-upload.php I checked cvs.php.net: http://cvs.php.net/viewvc.cgi/pear/HTTP_Upload/Upload.php?revision=1.61&view=markup Line 888, looks like the issue is fixed? (That is if I still understand my 8 months old bug report. ;-)) I would not recommend silencing move_uploaded_file() there. PHP has a very comprehensive error reporting mechanism and people should be able to pipe the warning into a log and also use it to debug their app. ------------------------------------------------------------------------ [2008-10-22 09:26:33] doconnor Psst, till, unit test / executable test case? ------------------------------------------------------------------------ [2008-02-09 21:37:25] till Description: ------------ I copied the example code, ran it - no error. I am not sure why since move_uploaded_file should return "false" in that case and it should trigger an error. Just wanted to add this. Btw, check out my comment on this bug (in regard to your package): http://pear.php.net/bugs/bug.php?id=12946 ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=13095&edit=1

« previous php.pear.bugs (#127) next »