mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
20 lines
418 B
Plaintext
20 lines
418 B
Plaintext
|
--TEST--
|
||
|
Bug #45280 (Reflection of instantiated COM classes causes PHP to crash)
|
||
|
--SKIPIF--
|
||
|
<?php
|
||
|
if (!extension_loaded("reflection")){ echo "skip, no reflection support present"; }
|
||
|
if (!extension_loaded("com_dotnet")){ echo "skip COM/.Net support not present"; }
|
||
|
?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$dict = new COM("Scripting.Dictionary");
|
||
|
|
||
|
ob_start();
|
||
|
ReflectionObject::export($dict);
|
||
|
ob_get_clean();
|
||
|
|
||
|
echo 'done';
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
done
|