#37557 [NEW]: Problem with open base, move_uploaded_file worked fine before now it doesnt.

From: Date: Tue, 23 May 2006 04:16:58 +0000
Subject: #37557 [NEW]: Problem with open base, move_uploaded_file worked fine before now it doesnt.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97460@lists.php.net to get a copy of this message
From: jcink2k at gmail dot com Operating system: Windows XP SP2 PHP version: 4.4.3RC1 PHP Bug Type: Safe Mode/open_basedir Bug description: Problem with open base, move_uploaded_file worked fine before now it doesnt. Description: ------------ Hi, I am not sure if this is a bug or not, so I apologize if it's bogus. But I'm having this issue in RC2 at the moment. RC1 is the only option here so I have picked that. I have open_basedir set to "." Reproduce code: --------------- $folder = "./uploads/"; $temporary = $_FILES['swforpic']['tmp_name']; $realfilename = $_FILES['swforpic']['name']; move_uploaded_file($temporary, $folder.$realfilename) or die("Problem writing the file. "); Worked fine for me on PHP 4.4.2 Expected result: ---------------- I expected the file to upload, as it does just fine in PHP 4.4.2 with open_basedir set to "." Actual result: -------------- Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect. File(C:\PROGRA~1\EASYPH~1\\tmp\phpED.tmp) is not within the allowed path(s): (.) in c:\program files\easyphp1-8\www\um\textfilebb_v1p0p17\add_reply.php on line 217 Don't know if this is a bug or not. But it was working just fine before, which makes me think that it is somehow. -- Edit bug report at http://bugs.php.net/?id=37557&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37557&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37557&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37557&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37557&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37557&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37557&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37557&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37557&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37557&r=support Expected behavior: http://bugs.php.net/fix.php?id=37557&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37557&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37557&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37557&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37557&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37557&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37557&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37557&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37557&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37557&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37557&r=mysqlcfg

« previous php.bugs (#97460) next »