php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61309
Patch php54_dbcs_win_unc_1 revision 2012-03-07 02:50 UTC by ku at digitaldolphins dot jp

Patch php54_dbcs_win_unc_1 for Directory function related Bug #61309

Patch version 2012-03-07 02:50 UTC

Return to Bug #61309 | Download this patch
Patch Revisions:

Developer: ku@digitaldolphins.jp

Index: tsrm_virtual_cwd.c
===================================================================
--- tsrm_virtual_cwd.c	(revision 323975)
+++ tsrm_virtual_cwd.c	(working copy)
@@ -1247,7 +1247,7 @@
 				goto verify;
 			}
 			resolved_path[start] = toupper(resolved_path[start]);
-			start++;
+			start += _mbsinc(&resolved_path[start]) - &resolved_path[start];
 		}
 		resolved_path[start++] = DEFAULT_SLASH;
 		while (!IS_SLASH(resolved_path[start])) {
@@ -1255,7 +1255,7 @@
 				goto verify;
 			}
 			resolved_path[start] = toupper(resolved_path[start]);
-			start++;
+			start += _mbsinc(&resolved_path[start]) - &resolved_path[start];
 		}
 		resolved_path[start++] = DEFAULT_SLASH;
 	} else if (IS_ABSOLUTE_PATH(resolved_path, path_length)) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC