#26597 [Opn->Fbk]: missing all slashes in the path $_FILES['any_file']['tmp_name']
ID: 26597
Updated by: sniper@php.net
Reported By: valyala at tut dot by
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Win2k sp3
PHP Version: 4.3.4
New Comment:
Try this:
print(addslashes($_FILES['any_file']['tmp_name']));
Previous Comments:
------------------------------------------------------------------------
[2003-12-12 04:50:43] valyala at tut dot by
Description:
------------
PHP 4.3.4 is running under apache 1.3.27 as module.
Value of $_FILES['any_file']['tmp_name'] is wrong. All slashes in the
path has been deleted. So, I cannot know the real filename of temporary
file.
Reproduce code:
---------------
/* file with name 'any_file' was posted to the script
I want to see, where the temporary file was stored on the server:
*/
print($_FILES['any_file']['tmp_name']);
Expected result:
----------------
c:/winnt/temp/phpXX.tmp
Actual result:
--------------
c:winnttempphpXX.tmp
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26597&edit=1
Thread (3 messages)