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

From: Date: Fri, 04 Jul 2008 11:29:09 +0000
Subject: #45429 [Fbk->Opn]: move_uploaded_file is terminating my scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126276@lists.php.net to get a copy of this message
ID: 45429 User updated by: aatelfer at hotmail dot com Reported By: aatelfer at hotmail dot com -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Apache/2.0.63 (Unix) PHP Version: 5.2.6 New Comment: Yes it is. My apologies. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#126276) next »