#45429 [NEW]: move_uploaded_file is terminating my scripts
| From: | aatelfer at hotmail dot com | Date: | Thu, 03 Jul 2008 20:11:05 +0000 |
| Subject: | #45429 [NEW]: move_uploaded_file is terminating my scripts | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-126260@lists.php.net to get a copy of this message | ||
From: aatelfer at hotmail dot com
Operating system: Apache/2.0.63 (Unix)
PHP version: 5.2.6
PHP Bug Type: Filesystem function related
Bug description: move_uploaded_file is terminating my scripts
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 bug report at http://bugs.php.net/?id=45429&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45429&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45429&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45429&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45429&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45429&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45429&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45429&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45429&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45429&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45429&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45429&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45429&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45429&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45429&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45429&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45429&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45429&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45429&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45429&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45429&r=mysqlcfg