mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
![]() A `BSTR` is similar to a `zend_string`; it stores the length of the string just before the actual string, and thus the string may contain NUL bytes. However, `php_com_olestring_to_string()` is supposed to deal with arbitrary `OLECHAR*`s which may not be `BSTR`s, so we introduce `php_com_bstr_to_string()` and use it for the only case where we actually have to deal with `BSTR`s which may contain NUL bytes. Contrary to `php_com_olestring_to_string()` we return a `zend_string`, so we can save the re-allocation when converting to a `zval`. We also cater to `php_com_string_to_olestring()` not being binary safe, with basically the same fix we did for `php_com_olestring_to_string()`. |
||
---|---|---|
.. | ||
tests | ||
com_com.c | ||
com_dotnet.c | ||
com_extension.c | ||
com_handlers.c | ||
com_iterator.c | ||
com_misc.c | ||
com_olechar.c | ||
com_persist.c | ||
com_saproxy.c | ||
com_typeinfo.c | ||
com_variant.c | ||
com_wrapper.c | ||
config.w32 | ||
CREDITS | ||
php_com_dotnet.h | ||
php_com_dotnet_internal.h |