Download src/php/php-src/ext/com_dotnet/tests/bug63208.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug63208.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/com_dotnet/tests/bug63208.phpt
-
curl -L -o bug63208.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/com_dotnet/tests/bug63208.phpt
376 Bytes
| --TEST-- | |
| Bug #63208 (BSTR to PHP string conversion not binary safe) | |
| --EXTENSIONS-- | |
| com_dotnet | |
| --FILE-- | |
| $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" | |