#45429 [Opn]: move_uploaded_file is terminating my scripts

From: Date: Thu, 03 Jul 2008 23:49:47 +0000
Subject: #45429 [Opn]: move_uploaded_file is terminating my scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126264@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: Open Bug Type: Filesystem function related Operating System: Apache/2.0.63 (Unix) PHP Version: 5.2.6 New Comment: Sorry, I did not install the GD library. It caused a fatal error and the error was suppressed. Previous Comments: ------------------------------------------------------------------------ [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 (#126264) next »