]> granicus.if.org Git - php/commitdiff
Add test for bug #69939
authorKalle Sommer Nielsen <kalle@php.net>
Fri, 26 Jun 2015 13:35:16 +0000 (15:35 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Fri, 26 Jun 2015 13:35:16 +0000 (15:35 +0200)
ext/com_dotnet/tests/bug69939.phpt [new file with mode: 0644]

diff --git a/ext/com_dotnet/tests/bug69939.phpt b/ext/com_dotnet/tests/bug69939.phpt
new file mode 100644 (file)
index 0000000..6a778d5
--- /dev/null
@@ -0,0 +1,11 @@
+--TEST--
+Bug #69939 (Casting object to bool returns false)
+--SKIPIF--
+<?php 
+if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
+--FILE--
+<?php
+var_dump((bool) new COM('WScript.Shell'));
+?>
+--EXPECT--
+bool(true)