- no headers property anymore
authorMichael Wallner <mike@php.net>
Wed, 14 Sep 2005 11:32:25 +0000 (11:32 +0000)
committerMichael Wallner <mike@php.net>
Wed, 14 Sep 2005 11:32:25 +0000 (11:32 +0000)
- need to make data, file and stream properties private, because we need
  to know the http_send_mode which can anly be set in methods automatically

http_response_object.c

index e60b555b78818a20489507c8fb828d5a633897f2..9ef4fc93f32773be4ad76c87e59605398f33084c 100644 (file)
@@ -220,11 +220,11 @@ static inline void _http_response_object_declare_default_properties(TSRMLS_D)
        DCL_STATIC_PROP(PRIVATE, bool, sent, 0);
        DCL_STATIC_PROP(PRIVATE, bool, catch, 0);
        DCL_STATIC_PROP(PRIVATE, long, mode, -1);
+       DCL_STATIC_PROP(PRIVATE, long, stream, 0);
+       DCL_STATIC_PROP_N(PRIVATE, file);
+       DCL_STATIC_PROP_N(PRIVATE, data);
        DCL_STATIC_PROP(PROTECTED, bool, cache, 0);
        DCL_STATIC_PROP(PROTECTED, bool, gzip, 0);
-       DCL_STATIC_PROP(PROTECTED, long, stream, 0);
-       DCL_STATIC_PROP_N(PROTECTED, file);
-       DCL_STATIC_PROP_N(PROTECTED, data);
        DCL_STATIC_PROP_N(PROTECTED, eTag);
        DCL_STATIC_PROP(PROTECTED, long, lastModified, 0);
        DCL_STATIC_PROP_N(PROTECTED, cacheControl);
@@ -232,7 +232,6 @@ static inline void _http_response_object_declare_default_properties(TSRMLS_D)
        DCL_STATIC_PROP_N(PROTECTED, contentDisposition);
        DCL_STATIC_PROP(PROTECTED, long, bufferSize, HTTP_SENDBUF_SIZE);
        DCL_STATIC_PROP(PROTECTED, double, throttleDelay, 0.0);
-       DCL_STATIC_PROP_N(PROTECTED, headers);
 }
 
 static void _http_grab_response_headers(void *data, void *arg TSRMLS_DC)