mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
56f90492d6
For rationale, see https://github.com/php/php-src/pull/6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
16 lines
376 B
PHP
16 lines
376 B
PHP
--TEST--
|
|
Bug #63208 (BSTR to PHP string conversion not binary safe)
|
|
--EXTENSIONS--
|
|
com_dotnet
|
|
--FILE--
|
|
<?php
|
|
$string = "\u{0905}b\0cd";
|
|
$variant = new VARIANT($string, VT_ARRAY | VT_UI1, CP_UTF8); // Array of bytes
|
|
$converted = (string) $variant;
|
|
var_dump(bin2hex($string));
|
|
var_dump(bin2hex($converted));
|
|
?>
|
|
--EXPECT--
|
|
string(14) "e0a48562006364"
|
|
string(14) "e0a48562006364"
|