]> granicus.if.org Git - php/commitdiff
potential fix for #25759, although it will need further review.
authorWez Furlong <wez@php.net>
Mon, 6 Oct 2003 15:10:38 +0000 (15:10 +0000)
committerWez Furlong <wez@php.net>
Mon, 6 Oct 2003 15:10:38 +0000 (15:10 +0000)
ext/com_dotnet/com_com.c

index 8b296a755da3eef9a225e0e0a0c120a2d2d2bd2f..b02132f3505c607f6895df49ba1825fd5d22e741 100644 (file)
@@ -118,7 +118,10 @@ PHP_FUNCTION(com_create_instance)
                IMoniker *pMoniker = NULL;
                ULONG ulEaten;
 
-               if (server_name == NULL) {
+               if (server_params != NULL) {
+                       /* TODO: review this.
+                        * The assumption seems to be that monikers cannot be invoked for remote servers.
+                        * The BindCtx might allow this however */
                        res = MK_E_SYNTAX;
                } else if (SUCCEEDED(res = CreateBindCtx(0, &pBindCtx)) &&
                                SUCCEEDED(res = MkParseDisplayName(pBindCtx, moniker, &ulEaten, &pMoniker))) {