- remove unnecessary separation crud
authorMichael Wallner <mike@php.net>
Fri, 5 Oct 2007 10:30:43 +0000 (10:30 +0000)
committerMichael Wallner <mike@php.net>
Fri, 5 Oct 2007 10:30:43 +0000 (10:30 +0000)
http_requestdatashare_object.c

index 91a2fa6f0af650c8edf6368ebe8167c045d57204..3b6ff4e7f2876627ca2e37509e80e8a09e63422d 100644 (file)
@@ -159,15 +159,9 @@ static void _http_requestdatashare_object_write_prop(zval *object, zval *member,
 {
        if (zend_hash_exists(&THIS_CE->default_properties, Z_STRVAL_P(member), Z_STRLEN_P(member)+1)) {
                int status;
-               zval *orig = value;
                getObjectEx(http_requestdatashare_object, obj, object);
                
-               SEPARATE_ZVAL_IF_NOT_REF(&value);
                status = http_request_datashare_set(obj->share, Z_STRVAL_P(member), Z_STRLEN_P(member), (zend_bool) i_zend_is_true(value));
-               if (orig != value) {
-                       zval_ptr_dtor(&value);
-                       value = orig;
-               }
                if (SUCCESS != status) {
                        return;
                }