#45429 [Opn->Bgs]: move_uploaded_file is terminating my scripts

From: Date: Fri, 04 Jul 2008 11:57:36 +0000
Subject: #45429 [Opn->Bgs]: move_uploaded_file is terminating my scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126277@lists.php.net to get a copy of this message
 ID:               45429
 Updated by:       johannes@php.net
 Reported By:      aatelfer at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Filesystem function related
 Operating System: Apache/2.0.63 (Unix)
 PHP Version:      5.2.6
 New Comment:

Closing then.


Previous Comments:
------------------------------------------------------------------------

[2008-07-04 11:29:09] aatelfer at hotmail dot com

Yes it is. My apologies.

------------------------------------------------------------------------

[2008-07-04 07:54:17] jani@php.net

So the problem is gone?

------------------------------------------------------------------------

[2008-07-03 23:49:47] aatelfer at hotmail dot com

Sorry, I did not install the GD library.
It caused a fatal error and the error was suppressed.

------------------------------------------------------------------------

[2008-07-03 20:11:05] aatelfer at hotmail dot com

Description:
------------
move_uploaded_file file has some error that causes my script to
terminate. I don't get any errors at all. The script just ends.


Reproduce code:
---------------
function uploadfile($filename,$path)
{
   if(is_uploaded_file($_FILES[$filename]['tmp_name']))  {		  	 	 
		   move_uploaded_file($_FILES[$filename]['tmp_name'],$path);
		   
		   return true;
		  }
   return false;
}

Expected result:
----------------
function should return a true or false value

Actual result:
--------------
Scripts terminates without any error


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45429&edit=1



Thread (5 messages)

« previous php.bugs (#126277) next »