You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 4 TODO items in the code. Putting this here to get this on the radar to either fix or wontfix (in the case of wontfix the todos should be removed from the codebase). The file isn't very large so a copy/paste of the relevant code is below. The only other file that seems to make reference to com_handlers.c is com_variant.c
Side note: The entire handling of PHP variant / COM types seems very clunky to me. But I've not dealt with Windows COM in years so maybe it is the way it is.
staticintcom_property_exists(zend_object*object, zend_string*member, intcheck_empty, void**cache_slot)
{
DISPIDdispid;
php_com_dotnet_object*obj;
obj= (php_com_dotnet_object*) object;
if (V_VT(&obj->v) ==VT_DISPATCH) {
if (SUCCEEDED(php_com_get_id_of_name(obj, member, &dispid))) {
/* TODO: distinguish between property and method! */return1;
}
} else {
/* TODO: check for safearray */
}
return0;
}
staticintcom_dimension_exists(zend_object*object, zval*member, intcheck_empty)
{
/* TODO Add support */zend_throw_error(NULL, "Cannot check dimension on a COM object");
return0;
}
staticvoidcom_property_delete(zend_object*object, zend_string*member, void**cache_slot)
{
zend_throw_error(NULL, "Cannot delete properties from a COM object");
}
staticvoidcom_dimension_delete(zend_object*object, zval*offset)
{
zend_throw_error(NULL, "Cannot delete dimension from a COM object");
}
staticHashTable*com_properties_get(zend_object*object)
{
/* TODO: use type-info to get all the names and values ? * DANGER: if we do that, there is a strong possibility for * infinite recursion when the hash is displayed via var_dump(). * Perhaps it is best to leave it un-implemented. */return (HashTable*) &zend_empty_array;
}
The text was updated successfully, but these errors were encountered:
Description
There are 4 TODO items in the code. Putting this here to get this on the radar to either fix or wontfix (in the case of wontfix the todos should be removed from the codebase). The file isn't very large so a copy/paste of the relevant code is below. The only other file that seems to make reference to com_handlers.c is com_variant.c
Side note: The entire handling of PHP variant / COM types seems very clunky to me. But I've not dealt with Windows COM in years so maybe it is the way it is.
The text was updated successfully, but these errors were encountered: