mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
com_*() functions returned an oo-resource instead of an resource id,
thus subsequent com_*() calls to com-returnvalues failed.
This commit is contained in:
parent
d4b86e1c5b
commit
9a6fe9631e
4 changed files with 40 additions and 18 deletions
|
@ -804,9 +804,8 @@ PHP_FUNCTION(com_invoke)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
php_variant_to_pval(var_result, return_value, codepage TSRMLS_CC);
|
||||
RETVAL_VARIANT(var_result);
|
||||
|
||||
FREE_VARIANT(var_result);
|
||||
efree(arguments);
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -1049,9 +1048,7 @@ PHP_FUNCTION(com_propget)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
php_variant_to_pval(var_result, return_value, codepage TSRMLS_CC);
|
||||
|
||||
FREE_VARIANT(var_result);
|
||||
RETVAL_VARIANT(var_result);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -1201,8 +1198,7 @@ PHPAPI pval php_COM_get_property_handler(zend_property_reference *property_refer
|
|||
pval_destructor(&overloaded_property->element);
|
||||
}
|
||||
|
||||
if (obj_prop != NULL)
|
||||
{
|
||||
if (obj_prop != NULL) {
|
||||
RETVAL_COM(obj);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue