might be too late though, but this is the earliest place ATW
we can access the internal charset information from PHP. */
argv_wide = CommandLineToArgvW(GetCommandLineW(), &num_args);
- PHP_WIN32_CP_W_TO_A_ARRAY(argv_wide, num_args, argv, argc)
+ PHP_WIN32_CP_W_TO_ANY_ARRAY(argv_wide, num_args, argv, argc)
using_wide_argv = 1;
SetConsoleCtrlHandler(php_cli_win32_ctrl_handler, TRUE);
(void)php_win32_cp_cli_restore();
if (using_wide_argv) {
- PHP_WIN32_FREE_ARRAY(argv, argc);
+ PHP_WIN32_CP_FREE_ARRAY(argv, argc);
LocalFree(argv_wide);
}
argv = argv_save;
}/*}}}*/
#define php_win32_cp_w_to_any(in) php_win32_cp_conv_w_to_any(in, PHP_WIN32_CP_IGNORE_LEN, PHP_WIN32_CP_IGNORE_LEN_P)
-#define PHP_WIN32_CP_W_TO_A_ARRAY(aw, aw_len, aa, aa_len) do { \
+#define PHP_WIN32_CP_W_TO_ANY_ARRAY(aw, aw_len, aa, aa_len) do { \
int i; \
aa_len = aw_len; \
aa = (char **) malloc(aw_len * sizeof(char *)); \
} while (0);
-#define PHP_WIN32_FREE_ARRAY(a, a_len) do { \
+#define PHP_WIN32_CP_FREE_ARRAY(a, a_len) do { \
int i; \
for (i = 0; i < a_len; i++) { \
free(a[i]); \