1--TEST-- 2COM: Loading typelib corrupts memory 3--SKIPIF-- 4<?php 5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?> 6--FILE-- 7<?php 8error_reporting(E_ALL); 9 10$arEnv = array_change_key_case($_SERVER, CASE_UPPER); 11 12$root = dirname($arEnv['COMSPEC']); 13$typelib = $root.'\activeds.tlb'; 14 15var_dump(com_load_typelib($typelib)); 16var_dump(com_load_typelib($typelib)); 17?> 18--EXPECT-- 19bool(true) 20bool(true) 21