php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4866 file upload misbehaved variables
Submitted: 2000-06-07 15:16 UTC Modified: 2000-07-26 07:30 UTC
From: pmm at uninova dot pt Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: Windows 98
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pmm at uninova dot pt
New email:
PHP Version: OS:

 

 [2000-06-07 15:16 UTC] pmm at uninova dot pt
$userfile_name and $userfile present double back slashes in Windows 98/PWS/ISAPI.

Example:

<?php echo $userfile; ?>

presents:
C:\\WINDOWS\\TEMP\\php57

should present:
C:\WINDOWS\TEMP\php57

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 07:30 UTC] zak@php.net
AFAIK this behavior is correct.  The first backslash escapes the special meaning of the second backslash when the variable is used within a context where backslash escape sequences are interpreted.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 22:00:01 2026 UTC