Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the default temp directory whether it contains unicode characters #71

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

On Vista/7/8 The default temp directory returned by winapi GetTempPath() is 
`C:\Users\%user%\AppData\Local\temp`. If user's name contains unicode 
characters then PHP won't be able to use this directory. In this case a 
different temp directory should be set. Check the following directories whether 
they exist and are writable, in this order:

  C:\Windows\Temp (or C:\%WinDir%\Temp)
  C:\Temp
  your application\temp
  C:\Users\Public\Temp

If these fail, try creating temp directory in the following locations:

  your application\temp
  C:\Users\Public\Temp

Original issue reported on code.google.com by czarek.t...@gmail.com on 28 Jan 2014 at 3:54

@GoogleCodeExporter
Copy link
Author

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 3:57

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

There is even an another issue on Win XP. The temp directory returned by 
GetTempPathW() is a short path (!). For example:

  C:\DOCUME~1\UNICOD~1\LOCALS~1\Temp

Writing session files work fine with such temp directory. But uploading does 
not work. PHP besides unicode paths, also does not like Windows short paths.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 8:39

@GoogleCodeExporter
Copy link
Author

Fixed in revision 6402c5f39274.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 9:20

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Fix for MSIE commited in revision 94034bfc3c68.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 9:45

@GoogleCodeExporter
Copy link
Author

Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/71

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant