/PHP-8.1/ext/com_dotnet/ |
H A D | com_olechar.c | 32 DWORD flags = codepage == CP_UTF8 ? 0 : MB_PRECOMPOSED | MB_ERR_INVALID_CHARS; in php_com_string_to_olestring() 37 string_len = MultiByteToWideChar(codepage, flags, string, -1, NULL, 0); in php_com_string_to_olestring() 48 ok = MultiByteToWideChar(codepage, flags, string, (int)string_len, olestring, (int)string_len); in php_com_string_to_olestring() 76 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL); in php_com_olestring_to_string() 80 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL); in php_com_olestring_to_string() 105 BSTR php_com_string_to_bstr(zend_string *string, int codepage) in php_com_string_to_bstr() argument 108 DWORD flags = codepage == CP_UTF8 ? 0 : MB_PRECOMPOSED | MB_ERR_INVALID_CHARS; in php_com_string_to_bstr() 112 …if ((wc_len = MultiByteToWideChar(codepage, flags, ZSTR_VAL(string), (int)mb_len + 1, NULL, 0)) <=… in php_com_string_to_bstr() 132 zend_string *php_com_bstr_to_string(BSTR bstr, int codepage) in php_com_bstr_to_string() argument 138 mb_len = WideCharToMultiByte(codepage, 0, bstr, wc_len + 1, NULL, 0, NULL, NULL); in php_com_bstr_to_string() [all …]
|
H A D | php_com_dotnet_internal.h | 84 size_t *string_len, int codepage); 86 size_t string_len, int codepage); 87 BSTR php_com_string_to_bstr(zend_string *string, int codepage); 88 zend_string *php_com_bstr_to_string(BSTR bstr, int codepage); 117 PHP_COM_DOTNET_API void php_com_variant_from_zval(VARIANT *v, zval *z, int codepage); 118 PHP_COM_DOTNET_API int php_com_zval_from_variant(zval *z, VARIANT *v, int codepage); 129 int codepage); 131 int codepage); 135 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib_via_cache(const char *search_string, int codepage… 136 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib(char *search_string, int codepage); [all …]
|
H A D | com_variant.c | 144 safe_array_from_zval(v, z, codepage); in php_com_variant_from_zval() 240 php_com_wrap_dispatch(z, disp, codepage); in php_com_zval_from_variant() 259 php_com_wrap_variant(z, v, codepage); in php_com_zval_from_variant() 427 zend_long codepage = CP_ACP; in PHP_METHOD() local 439 "z!|ll", &zvalue, &vt, &codepage)) { in PHP_METHOD() 447 obj->code_page = (int)codepage; in PHP_METHOD() 544 int codepage = CP_ACP; in variant_binary_operation() local 569 php_com_variant_from_zval(vleft, zleft, codepage); in variant_binary_operation() 739 int codepage = CP_ACP; in variant_unary_operation() local 830 int codepage = CP_ACP; in PHP_FUNCTION() local [all …]
|
H A D | com_typeinfo.c | 61 PHP_COM_DOTNET_API ITypeLib *php_com_load_typelib(char *search_string, int codepage) in php_com_load_typelib() argument 78 p = php_com_string_to_olestring(search_string, strlen(search_string), codepage); in php_com_load_typelib() 155 TL = php_com_load_typelib(str, codepage); in php_com_load_typelib() 211 const_name = php_com_olestring_to_string(bstr_ids, &len, codepage); in php_com_import_typelib() 215 php_com_zval_from_variant(&value, pVarDesc->lpvarValue, codepage); in php_com_import_typelib() 281 TL = php_com_load_typelib(name_dup, codepage); in php_com_load_typelib_via_cache() 460 static char *php_com_string_from_clsid(const CLSID *clsid, int codepage) in php_com_string_from_clsid() argument 466 clsid_str = php_com_olestring_to_string(ole_clsid, NULL, codepage); in php_com_string_from_clsid() 499 ansiname = php_com_olestring_to_string(olename, &ansinamelen, codepage); in php_com_process_typeinfo() 502 guidstring = php_com_string_from_clsid(&attr->guid, codepage); in php_com_process_typeinfo() [all …]
|
H A D | com_extension.stub.php | 57 function com_get_active_object(string $prog_id, ?int $codepage = null): variant {} argument 72 … public function __construct(mixed $value = null, int $type = VT_EMPTY, int $codepage = CP_ACP) {} argument 77 …struct(string $module_name, array|string|null $server_name = null, int $codepage = CP_ACP, string … argument 83 …public function __construct(string $assembly_name, string $datatype_name, int $codepage = CP_ACP) … argument
|
H A D | com_misc.c | 46 int codepage) in php_com_wrap_dispatch() argument 52 obj->code_page = codepage; in php_com_wrap_dispatch() 69 int codepage) in php_com_wrap_variant() argument 75 obj->code_page = codepage; in php_com_wrap_variant()
|
H A D | com_extension_arginfo.h | 86 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 1, "null") 116 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP") 122 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP") 130 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP")
|
H A D | com_persist.c | 287 long codepage; member 342 &len, helper->codepage); in CPH_METHOD() 390 olefilename = php_com_string_to_olestring(fullpath, strlen(fullpath), helper->codepage); in CPH_METHOD() 449 olefilename = php_com_string_to_olestring(fullpath, strlen(fullpath), helper->codepage); in CPH_METHOD() 660 helper->codepage = obj->code_page; in CPH_METHOD()
|
H A D | com_com.c | 818 int codepage = COMG(code_page); in PHP_FUNCTION() local 831 pTL = php_com_load_typelib_via_cache(name, codepage); in PHP_FUNCTION() 833 if (php_com_import_typelib(pTL, cs ? CONST_CS : 0, codepage) == SUCCESS) { in PHP_FUNCTION()
|
/PHP-8.1/sapi/cgi/tests/ |
H A D | ghsa-3qgc-jrrr-25jv.phpt | 8 $codepage = trim(shell_exec("powershell Get-ItemPropertyValue HKLM:\\SYSTEM\\CurrentControlSet\\Con… 9 if ($codepage !== '932' && $codepage !== '936' && $codepage !== '950') die("skip Wrong codepage");
|
/PHP-8.1/ext/com_dotnet/tests/ |
H A D | bug73679.phpt | 2 Bug #73679 DOTNET read access violation using invalid codepage 19 Fatal error: Uncaught com_exception: Could not create .Net object - invalid codepage! in %sbug73679…
|
/PHP-8.1/ext/standard/tests/strings/ |
H A D | sapi_windows_cp_conv.phpt | 6 if (!sapi_windows_cp_set(1252) || !sapi_windows_cp_set(65001)) die('skip codepage not available');
|
/PHP-8.1/ext/standard/tests/file/windows_mb_path/ |
H A D | util.inc | 50 die("skip this test expect codepage $cp");
|
/PHP-8.1/win32/build/ |
H A D | config.w32 | 284 getrusage.c ftok.c ioutil.c codepage.c nice.c \
|
/PHP-8.1/ext/standard/ |
H A D | basic_functions.stub.php | 1930 function sapi_windows_cp_set(int $codepage): bool {} argument
|
H A D | basic_functions_arginfo.h | 2186 ZEND_ARG_TYPE_INFO(0, codepage, IS_LONG, 0)
|
/PHP-8.1/ext/fileinfo/tests/ |
H A D | magic | 9465 #>>>>>>>>>>>>29 ubyte =0 \b, codepage ID=0x%x 9467 >>>>>>>>>>>>29 ubyte >0 \b, codepage ID=0x%x 22095 # A lookup table of the chars in the map's codepage, and their collating sequence 26679 >>(78.L+0x1C) belong !0 \b, codepage %d 29756 # look for explicit codepage keyword 29760 # skip unknown or buggy codepage string 0 like in fdo78502.rtf 29762 # codepage string: 437~United States IBM, ..., 1252~WesternEuropean, ..., 57011~Punjabi 34099 >>&0 regex/c \^(Windows\ Latin) Windows codepage translator
|
H A D | magic私はガラスを食べられます | 9465 #>>>>>>>>>>>>29 ubyte =0 \b, codepage ID=0x%x 9467 >>>>>>>>>>>>29 ubyte >0 \b, codepage ID=0x%x 22095 # A lookup table of the chars in the map's codepage, and their collating sequence 26679 >>(78.L+0x1C) belong !0 \b, codepage %d 29756 # look for explicit codepage keyword 29760 # skip unknown or buggy codepage string 0 like in fdo78502.rtf 29762 # codepage string: 437~United States IBM, ..., 1252~WesternEuropean, ..., 57011~Punjabi 34099 >>&0 regex/c \^(Windows\ Latin) Windows codepage translator
|