jerrard123 / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Fixed in revision 6402c5f39274.

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

GoogleCodeExporter commented 9 years ago
Fix for MSIE commited in revision 94034bfc3c68.

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