xref: /PHP-8.1/ext/com_dotnet/tests/bug39606.phpt (revision 56f90492)
1--TEST--
2COM: Loading typelib corrupts memory
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7error_reporting(E_ALL);
8
9$arEnv = array_change_key_case($_SERVER, CASE_UPPER);
10
11$root = dirname($arEnv['COMSPEC']);
12$typelib = $root.'\activeds.tlb';
13
14var_dump(com_load_typelib($typelib));
15var_dump(com_load_typelib($typelib));
16?>
17--EXPECT--
18bool(true)
19bool(true)
20