xref: /PHP-5.5/ext/com_dotnet/tests/bug39606.phpt (revision c2c9908f)
1--TEST--
2COM: Loading typelib corrupts memory
3--SKIPIF--
4<?php # vim:ft=php
5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
6--FILE--
7<?php // $Id$
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===DONE===
19--EXPECT--
20bool(true)
21bool(true)
22===DONE===