Bug #74641 [NEW]: Escaping a digit on directory name
| From: | falzone at outlook dot com | Date: | Wed, 24 May 2017 00:21:01 +0000 |
| Subject: | Bug #74641 [NEW]: Escaping a digit on directory name | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-209241@lists.php.net to get a copy of this message | ||
From: falzone at outlook dot com
Operating system: Windows 10
PHP version: Irrelevant
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:Escaping a digit on directory name
Description:
------------
---
From manual page: http://www.php.net/function.move-uploaded-file
---
Test script:
---------------
move_uploaded_file($_FILES["file"]["tmp_name"], "G:\WEB
Servers\UwAmp\www\3_KachiVersiaPurva\uploads\\" .
$_FILES["file"]["name"]);
Expected result:
----------------
I expect to upload a file in this directory. When i escape it like this:
"G:\WEB Servers\UwAmp\www\\3_KachiVersiaPurva\uploads\\" it's working
like a charm. Why i should escape digit (3 in my case). It isn't
backslash or so
Actual result:
--------------
Warning: move_uploaded_file(G:\WEB
Servers\UwAmp\www_KachiVersiaPurva\uploads\05.11.2016.peak_temperature.gif):
failed to open stream: No such file or directory in G:\WEB
Servers\UwAmp\www\3_KachiVersiaPurva\image.php on line 32
--
Edit bug report at https://bugs.php.net/bug.php?id=74641&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74641&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74641&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74641&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74641&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74641&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74641&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74641&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74641&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74641&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74641&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74641&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74641&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74641&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74641&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74641&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74641&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74641&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74641&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74641&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74641&r=mysqlcfg