Re: sapi_header_op

From: Date: Sun, 30 Jun 2002 14:55:38 +0000
Subject: Re: sapi_header_op
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85677@lists.php.net to get a copy of this message
At 02:44 PM 6/30/2002, Sascha Schumann wrote:
typedef struct {
    char *line; /* If you allocated this, you need to free it yourself */
    uint line_len;
    long response_code; /* long due to zend_parse_parameters compatibility */
} sapi_header_line;
typedef enum {                  /* Parameter:           */
    SAPI_HEADER_REPLACE,        /* sapi_header_line*    */
    SAPI_HEADER_ADD,            /* sapi_header_line*    */
    SAPI_HEADER_SET_STATUS      /* int                  */
} sapi_header_op_enum; SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC);
How is it better than add_header_ex()? Or is the main point to avoid breaking compatibility? Zeev

« previous php.dev (#85677) next »