mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Promote warnings to Error in COM extension
Closes GH-6141
This commit is contained in:
parent
213b666781
commit
e55f0c796c
10 changed files with 40 additions and 29 deletions
|
@ -288,18 +288,19 @@ static int saproxy_property_exists(zend_object *object, zend_string *member, int
|
|||
|
||||
static int saproxy_dimension_exists(zend_object *object, zval *member, int check_empty)
|
||||
{
|
||||
php_error_docref(NULL, E_WARNING, "Operation not yet supported on a COM object");
|
||||
/* TODO Add support */
|
||||
zend_throw_error(NULL, "Cannot check dimension on a COM object");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void saproxy_property_delete(zend_object *object, zend_string *member, void **cache_slot)
|
||||
{
|
||||
php_error_docref(NULL, E_WARNING, "Cannot delete properties from a COM object");
|
||||
zend_throw_error(NULL, "Cannot delete properties from a COM object");
|
||||
}
|
||||
|
||||
static void saproxy_dimension_delete(zend_object *object, zval *offset)
|
||||
{
|
||||
php_error_docref(NULL, E_WARNING, "Cannot delete properties from a COM object");
|
||||
zend_throw_error(NULL, "Cannot delete dimension from a COM object");
|
||||
}
|
||||
|
||||
static HashTable *saproxy_properties_get(zend_object *object)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue