]> granicus.if.org Git - php/commitdiff
Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISP...
authorandy wharmby <wharmby@php.net>
Fri, 2 Feb 2007 15:44:06 +0000 (15:44 +0000)
committerandy wharmby <wharmby@php.net>
Fri, 2 Feb 2007 15:44:06 +0000 (15:44 +0000)
NEWS
ext/com_dotnet/com_misc.c

diff --git a/NEWS b/NEWS
index 7128b54e905959d4edda9ebdf8bb1f9968ce8fee..2fcf90cffb0c890d3638b36e7414522104efea39 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -325,6 +325,8 @@ PHP                                                                        NEWS
   fastcgi). (Dmitry)
 - Fixed bug #38252 (Incorrect PDO error message on invalid default fetch
   mode). (Ilia)
+- Fixed bug #37927 (Prevent trap when COM extension processes argument of
+  type VT_DISPATCH|VT_REF) (Andy)
 - Fixed bug #37773 (iconv_substr() gives "Unknown error" when string
   length = 1"). (Ilia)
 - Fixed bug #37627 (session save_path check checks the parent directory).
index 2eb1c4eb2c538917cd519b4ddb42470306316c0a..bc443e62a468f59acef2f6fb3d6d32c543243524 100644 (file)
@@ -80,7 +80,7 @@ PHPAPI void php_com_wrap_variant(zval *z, VARIANT *v,
        VariantCopyInd(&obj->v, v);
        obj->modified = 0;
 
-       if (V_VT(&obj->v) == VT_DISPATCH) {
+       if ((V_VT(&obj->v) == VT_DISPATCH) && (V_DISPATCH(&obj->v) != NULL)) {
                IDispatch_GetTypeInfo(V_DISPATCH(&obj->v), 0, LANG_NEUTRAL, &obj->typeinfo);
        }