} else {
if (!INI_INT("com.allow_dcom")) {
php_error(E_WARNING, "DCOM is disabled");
- RETURN_FALSE;
+ RETURN_NULL;
} else {
flags = CLSCTX_REMOTE_SERVER;
convert_to_string_ex(&server_name);
error_message = php_COM_error_message(hr TSRMLS_CC);
php_error(E_WARNING,"Invalid ProgID, GUID string, or Moniker: %s", error_message);
LocalFree(error_message);
- RETURN_FALSE;
+ RETURN_NULL;
}
} else {
efree(ProgID);
LocalFree(error_message);
efree(clsid_str);
php_COM_destruct(obj TSRMLS_CC);
- RETURN_FALSE;
+ RETURN_NULL;
}
}
}
arguments = (pval **) emalloc(sizeof(pval *)*arg_count);
if (zend_get_parameters_array(ht, arg_count, arguments) == FAILURE) {
- RETURN_FALSE;
+ RETURN_NULL;
}
object = arguments[0];
obj = (comval *)zend_list_find(Z_LVAL_P(object), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_STRVAL_P(function_name));
- RETURN_FALSE;
+ RETURN_NULL;
}
/* obtain property/method handler */
FREE_VARIANT(var_result);
efree(arguments);
- RETURN_FALSE;
+ RETURN_NULL;
}
RETVAL_VARIANT(var_result);
FREE_VARIANT(var_result);
FREE_VARIANT(new_value);
- RETURN_FALSE;
+ RETURN_NULL;
}
php_pval_to_variant(value, new_value, codepage TSRMLS_CC);
FREE_VARIANT(var_result);
FREE_VARIANT(new_value);
- RETURN_FALSE;
+ RETURN_NULL;
}
dispparams.cArgs = 0;
obj = (comval *)zend_list_find(Z_LVAL_P(arg_comval), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_LVAL_P(arg_comval));
- RETURN_FALSE;
+ RETURN_NULL;
}
convert_to_string_ex(&arg_property);
if (do_COM_propget(var_result, obj, arg_property, FALSE TSRMLS_CC) == FAILURE) {
FREE_VARIANT(var_result);
- RETURN_FALSE;
+ RETURN_NULL;
}
RETVAL_VARIANT(var_result);
obj = (comval *)zend_list_find(Z_LVAL_P(arg_comval), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_LVAL_P(arg_comval));
- RETURN_FALSE;
+ RETURN_NULL;
}
convert_to_string_ex(&arg_property);
} else {
if (!INI_INT("com.allow_dcom")) {
php_error(E_WARNING, "DCOM is disabled");
- RETURN_FALSE;
+ RETURN_NULL;
} else {
flags = CLSCTX_REMOTE_SERVER;
convert_to_string_ex(&server_name);
error_message = php_COM_error_message(hr TSRMLS_CC);
php_error(E_WARNING,"Invalid ProgID, GUID string, or Moniker: %s", error_message);
LocalFree(error_message);
- RETURN_FALSE;
+ RETURN_NULL;
}
} else {
efree(ProgID);
LocalFree(error_message);
efree(clsid_str);
php_COM_destruct(obj TSRMLS_CC);
- RETURN_FALSE;
+ RETURN_NULL;
}
}
}
arguments = (pval **) emalloc(sizeof(pval *)*arg_count);
if (zend_get_parameters_array(ht, arg_count, arguments) == FAILURE) {
- RETURN_FALSE;
+ RETURN_NULL;
}
object = arguments[0];
obj = (comval *)zend_list_find(Z_LVAL_P(object), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_STRVAL_P(function_name));
- RETURN_FALSE;
+ RETURN_NULL;
}
/* obtain property/method handler */
FREE_VARIANT(var_result);
efree(arguments);
- RETURN_FALSE;
+ RETURN_NULL;
}
RETVAL_VARIANT(var_result);
FREE_VARIANT(var_result);
FREE_VARIANT(new_value);
- RETURN_FALSE;
+ RETURN_NULL;
}
php_pval_to_variant(value, new_value, codepage TSRMLS_CC);
FREE_VARIANT(var_result);
FREE_VARIANT(new_value);
- RETURN_FALSE;
+ RETURN_NULL;
}
dispparams.cArgs = 0;
obj = (comval *)zend_list_find(Z_LVAL_P(arg_comval), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_LVAL_P(arg_comval));
- RETURN_FALSE;
+ RETURN_NULL;
}
convert_to_string_ex(&arg_property);
if (do_COM_propget(var_result, obj, arg_property, FALSE TSRMLS_CC) == FAILURE) {
FREE_VARIANT(var_result);
- RETURN_FALSE;
+ RETURN_NULL;
}
RETVAL_VARIANT(var_result);
obj = (comval *)zend_list_find(Z_LVAL_P(arg_comval), &type);
if (!obj || (type != IS_COM)) {
php_error(E_WARNING,"%d is not a COM object handler", Z_LVAL_P(arg_comval));
- RETURN_FALSE;
+ RETURN_NULL;
}
convert_to_string_ex(&arg_property);