php-src/ext/com_dotnet/tests
Christoph M. Becker e4999275c2
Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault (GH-17659)
* Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault

The actual fix is trivial, but to be able to test the behavior we have
to introduce an own COM object, since existing persistable objects
likely implement `IPersistInit`, not only `IPersist`.  We also want to
avoid further test dependencies on possibly unavailable objects, such
as `Word.Application`.

To this purposes, we add a small COM in-process server, which may be
extended for other testing purposes.  We keep it simple by implementing
it in C++, but without using any more sophisticated frameworks like ATL.

This component needs to be built explicitly (`nmake comtest.dll`), and
also needs to be explicitly registered (`nmake register_comtest`).
When no longer needed, it is possible to unregister the component
(`nmake unregister_comtest`).
2025-02-11 12:42:25 +01:00
..
comtest Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault (GH-17659) 2025-02-11 12:42:25 +01:00
27974.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug33386.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug34272.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug39596.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug39606.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug45280.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug49192.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug62474.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug63208.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug64130.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug66322.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug66431_0.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug66431_1.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug69939.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug72498.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug73679.phpt Skip .NET tests if mscoree is not available (#14281) 2024-05-20 23:26:52 +02:00
bug77177.phpt Skip .NET tests if mscoree is not available (#14281) 2024-05-20 23:26:52 +02:00
bug77578.phpt Avoid dl() in bug77578.phpt (GH-16663) 2024-11-01 22:13:02 +01:00
bug77621.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug78650.phpt Fix some more CLEAN sections 2021-09-06 17:03:35 +02:00
bug78694.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug79242.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug79247.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug79248.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug79299.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
bug79332.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
gh8750.phpt Fix GH-8750: Can not create VT_ERROR variant type 2022-07-12 16:43:14 +02:00
gh8750a.phpt Fix GH-8750: Can not create VT_ERROR variant type 2022-07-12 16:43:14 +02:00
gh8778.phpt ext/[cd]*: fix a bunch of typos (#16298) 2024-10-09 17:40:42 +02:00
gh16991.phpt Fix GH-16991: Getting typeinfo of non DISPATCH variant segfaults 2024-11-29 16:29:11 +01:00
gh17658.phpt Fix GH-17658: COMPersistHelper::LoadFromStream() can segfault (GH-17659) 2025-02-11 12:42:25 +01:00
lookup_error.phpt Fix format specifiers and arguments in com_dotnet (GH-15398) 2024-08-15 10:59:10 +02:00
saproxy_instantiate.phpt Prevent direct instantiation of com_safearray_proxy (GH-10278) 2024-10-07 11:35:59 +02:00
variant_variation.phpt Fix out of bound writes to SafeArray data 2024-10-09 21:14:44 +02:00
variant_variation2.phpt Fix property access of PHP objects wrapped in variant 2024-10-11 16:50:35 +02:00
variant_variation3.phpt Fix method calls for PHP objects wrapped in variant 2024-11-30 12:26:07 +01:00
variants.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00
variants_x64.phpt Migrate skip checks to --EXTENSIONS--, p1 2021-03-22 17:51:02 +01:00