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

From: Date: Fri, 04 Jul 2008 07:54:17 +0000
Subject: #45429 [Opn->Fbk]: move_uploaded_file is terminating my scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126269@lists.php.net to get a copy of this message
ID: 45429 Updated by: jani@php.net Reported By: aatelfer at hotmail dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Apache/2.0.63 (Unix) PHP Version: 5.2.6 New Comment: So the problem is gone? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#126269) next »