X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_response_object.h;h=4f11c01f023b6c3b0070ffc271bdc6636ee9b397;hp=60a5be011e96508ac1e2ee7e40cb9708db1ce7b9;hb=ea72d21d93fa8e5a1a21422b14e90e6c89af3d54;hpb=a673ef718611fe1a7c8a4c61b2f4c97fc06efc2d diff --git a/php_http_response_object.h b/php_http_response_object.h index 60a5be0..4f11c01 100644 --- a/php_http_response_object.h +++ b/php_http_response_object.h @@ -1,16 +1,13 @@ /* - +----------------------------------------------------------------------+ - | PECL :: http | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, that | - | is bundled with this package in the file LICENSE, and is available | - | through the world-wide-web at http://www.php.net/license/3_0.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Copyright (c) 2004-2005 Michael Wallner | - +----------------------------------------------------------------------+ + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2007, Michael Wallner | + +--------------------------------------------------------------------+ */ /* $Id$ */ @@ -18,16 +15,12 @@ #ifndef PHP_HTTP_RESPONSE_OBJECT_H #define PHP_HTTP_RESPONSE_OBJECT_H #ifdef ZEND_ENGINE_2 - -#include "missing.h" - #ifndef WONKY extern zend_class_entry *http_response_object_ce; extern zend_function_entry http_response_object_fe[]; -#define http_response_object_init() _http_response_object_init(INIT_FUNC_ARGS_PASSTHRU) -extern void _http_response_object_init(INIT_FUNC_ARGS); +extern PHP_MINIT_FUNCTION(http_response_object); PHP_METHOD(HttpResponse, setHeader); PHP_METHOD(HttpResponse, getHeader); @@ -58,10 +51,6 @@ PHP_METHOD(HttpResponse, setStream); PHP_METHOD(HttpResponse, getStream); PHP_METHOD(HttpResponse, send); PHP_METHOD(HttpResponse, capture); -PHP_METHOD(HttpResponse, redirect); -PHP_METHOD(HttpResponse, status); -PHP_METHOD(HttpResponse, getRequestHeaders); -PHP_METHOD(HttpResponse, getRequestBody); #endif #endif