com php-src: Fixed bug #73126 Cannot pass parameter 1 by reference: ext/com_dotnet/com_handlers.c

From: Date: Thu, 22 Sep 2016 09:49:35 +0000
Subject: com php-src: Fixed bug #73126 Cannot pass parameter 1 by reference: ext/com_dotnet/com_handlers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94613@lists.php.net to get a copy of this message
Commit: 579c8669c8b8b5646c576aea5b6b5c894ce485ff Author: Anatol Belski <ab@php.net> Thu, 22 Sep 2016 11:49:35 +0200 Parents: d334d319f0e86eb9c0fe35b7b9922637f4fbfe6a Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=579c8669c8b8b5646c576aea5b6b5c894ce485ff Log: Fixed bug #73126 Cannot pass parameter 1 by reference Bugs: https://bugs.php.net/73126 Changed paths: M ext/com_dotnet/com_handlers.c Diff: diff --git a/ext/com_dotnet/com_handlers.c b/ext/com_dotnet/com_handlers.c index a477093..5752a7d 100644 --- a/ext/com_dotnet/com_handlers.c +++ b/ext/com_dotnet/com_handlers.c @@ -309,7 +309,6 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin } f.num_args = bindptr.lpfuncdesc->cParams; - zend_set_function_arg_flags((zend_function*)&f); ITypeInfo_ReleaseFuncDesc(TI, bindptr.lpfuncdesc); break; @@ -335,15 +334,14 @@ static union _zend_function *com_method_get(zend_object **object_ptr, zend_strin } } - if (fptr) { - /* save this method in the cache */ - if (!obj->method_cache) { - ALLOC_HASHTABLE(obj->method_cache); - zend_hash_init(obj->method_cache, 2, NULL, function_dtor, 0); - } - - zend_hash_update_mem(obj->method_cache, name, &f, sizeof(f)); + zend_set_function_arg_flags((zend_function*)&f); + /* save this method in the cache */ + if (!obj->method_cache) { + ALLOC_HASHTABLE(obj->method_cache); + zend_hash_init(obj->method_cache, 2, NULL, function_dtor, 0); } + + zend_hash_update_mem(obj->method_cache, name, &f, sizeof(f)); } if (fptr) {

« previous php.cvs (#94613) next »