From: Wez Furlong Date: Mon, 6 Oct 2003 15:10:38 +0000 (+0000) Subject: potential fix for #25759, although it will need further review. X-Git-Tag: RELEASE_1_3b3~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1b5c341a21ede2751521765f1e52587212a8b47;p=php potential fix for #25759, although it will need further review. --- diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 8b296a755d..b02132f350 100644 --- a/ext/com_dotnet/com_com.c +++ b/ext/com_dotnet/com_com.c @@ -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))) {