diff options
Diffstat (limited to 'ext/com_dotnet/tests/bug45280.phpt')
| -rw-r--r-- | ext/com_dotnet/tests/bug45280.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/com_dotnet/tests/bug45280.phpt b/ext/com_dotnet/tests/bug45280.phpt new file mode 100644 index 0000000..a1f7e18 --- /dev/null +++ b/ext/com_dotnet/tests/bug45280.phpt @@ -0,0 +1,19 @@ +--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 |
