php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #79299
Patch fix_com_print_typeinfo revision 2020-02-23 18:01 UTC by litiano dot moura at yahoo dot com dot br

Patch fix_com_print_typeinfo for COM related Bug #79299

Patch version 2020-02-23 18:01 UTC

Return to Bug #79299 | Download this patch
Patch Revisions:

Developer: litiano.moura@yahoo.com.br

diff --git a/ext/com_dotnet/com_typeinfo.c b/ext/com_dotnet/com_typeinfo.c
index fe1d18f5d6..c92d0d7b66 100644
--- a/ext/com_dotnet/com_typeinfo.c
+++ b/ext/com_dotnet/com_typeinfo.c
@@ -509,9 +509,9 @@ int php_com_process_typeinfo(ITypeInfo *typeinfo, HashTable *id_to_name, int pri
 		}
 
 		/* So we've got the dispatch interface; lets list the event methods */
+		DISPID lastid = 0;	/* for props */
 		for (i = 0; i < attr->cFuncs; i++) {
 			zval tmp;
-			DISPID lastid = 0;	/* for props */
 			int isprop;
 
 			if (FAILED(ITypeInfo_GetFuncDesc(typeinfo, i, &func)))
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jun 01 19:01:24 2020 UTC