]> granicus.if.org Git - php/commitdiff
update for read handler api change
authorWez Furlong <wez@php.net>
Mon, 22 Mar 2004 22:47:05 +0000 (22:47 +0000)
committerWez Furlong <wez@php.net>
Mon, 22 Mar 2004 22:47:05 +0000 (22:47 +0000)
ext/com_dotnet/com_handlers.c

index c1c45ba504dde0417dd1667275e60de762c10e82..4b39a4719740e438dc779044779ac4f402cc5f8c 100644 (file)
@@ -29,7 +29,7 @@
 #include "php_com_dotnet_internal.h"
 #include "Zend/zend_exceptions.h"
 
-static zval *com_property_read(zval *object, zval *member, zend_bool silent TSRMLS_DC)
+static zval *com_property_read(zval *object, zval *member, int type TSRMLS_DC)
 {
        zval *return_value;
        php_com_dotnet_object *obj;
@@ -52,9 +52,7 @@ static zval *com_property_read(zval *object, zval *member, zend_bool silent TSRM
                        VariantClear(&v);
                }
        } else {
-               if (!silent) {
-                       php_com_throw_exception(E_INVALIDARG, "this variant has no properties" TSRMLS_CC);
-               }
+               php_com_throw_exception(E_INVALIDARG, "this variant has no properties" TSRMLS_CC);
        }
 
        return return_value;