Re: cvs: php4 /ext/com COM.c

From: Date: Tue, 30 Apr 2002 19:41:02 +0000
Subject: Re: cvs: php4 /ext/com COM.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11574@lists.php.net to get a copy of this message
We decided to go with () for macros which have side-effects. We didn't fix them for TRUE/FALSE because of BC. Andi At 17:20 29/04/2002 +0000, Harald Radi wrote:
phanto          Mon Apr 29 13:20:16 2002 EDT
Modified files:
    /php4/ext/com       COM.c
Log: RETURN_NULL() is defined with braces while RETURN_TRUE and RETURN_FALSE are defined without. seems not very consistent ? Index: php4/ext/com/COM.c diff -u php4/ext/com/COM.c:1.68 php4/ext/com/COM.c:1.69
--- php4/ext/com/COM.c:1.68     Mon Apr 29 11:50:29 2002
+++ php4/ext/com/COM.c Mon Apr 29 13:20:14 2002 @@ -568,7 +568,7 @@
                } else {
                        if (!INI_INT("com.allow_dcom")) {
                                php_error(E_WARNING, "DCOM is disabled");
-                               RETURN_NULL;
+                               RETURN_NULL();
                        } else {
                                flags = CLSCTX_REMOTE_SERVER;
                                convert_to_string_ex(&server_name);
@@ -614,7 +614,7 @@
                        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_NULL;
+                       RETURN_NULL();
                }
        } else {
                efree(ProgID);
@@ -674,7 +674,7 @@
                        LocalFree(error_message);
                        efree(clsid_str);
                        php_COM_destruct(obj TSRMLS_CC);
-                       RETURN_NULL;
+                       RETURN_NULL();
                }
        }
@@ -911,7 +911,7 @@
        }
        arguments = (pval **) emalloc(sizeof(pval *)*arg_count);
        if (zend_get_parameters_array(ht, arg_count, arguments) == FAILURE) {
-               RETURN_NULL;
+               RETURN_NULL();
        }
        object = arguments[0];
@@ -922,7 +922,7 @@
        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_NULL;
+               RETURN_NULL();
        }
        /* obtain property/method handler */
@@ -934,7 +934,7 @@
                FREE_VARIANT(var_result);
                efree(arguments);
-               RETURN_NULL;
+               RETURN_NULL();
        }
        RETVAL_VARIANT(var_result);
@@ -1102,7 +1102,7 @@
                FREE_VARIANT(var_result);
                FREE_VARIANT(new_value);
-               RETURN_NULL;
+               RETURN_NULL();
        }
        php_pval_to_variant(value, new_value, codepage TSRMLS_CC);
@@ -1127,7 +1127,7 @@
                FREE_VARIANT(var_result);
                FREE_VARIANT(new_value);
-               RETURN_NULL;
+               RETURN_NULL();
        }
        dispparams.cArgs = 0;
@@ -1171,7 +1171,7 @@
        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_NULL;
+               RETURN_NULL();
        }
        convert_to_string_ex(&arg_property);
@@ -1179,7 +1179,7 @@
        if (do_COM_propget(var_result, obj, arg_property, FALSE TSRMLS_CC) == FAILURE) {
                FREE_VARIANT(var_result);
-               RETURN_NULL;
+               RETURN_NULL();
        }
        RETVAL_VARIANT(var_result);
@@ -1205,7 +1205,7 @@
        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_NULL;
+               RETURN_NULL();
        }
        convert_to_string_ex(&arg_property);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.cvs (#11574) next »