summaryrefslogtreecommitdiff
path: root/ext/com_dotnet/tests/bug39606.phpt
blob: cc8f00f425d2caa605ba45798ed39ba8872d500d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
COM: Loading typelib corrupts memory
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
--FILE--
<?php
error_reporting(E_ALL);

$arEnv = array_change_key_case($_SERVER, CASE_UPPER);

$root = dirname($arEnv['COMSPEC']);
$typelib = $root.'\activeds.tlb';

var_dump(com_load_typelib($typelib));
var_dump(com_load_typelib($typelib));
?>
===DONE===
--EXPECT--
bool(true)
bool(true)
===DONE===