X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_request_method.c;h=b4b3567e144844e0a1a83a211b9014483771a38e;hp=d159ad861cba57d0f2af94d7e6c4fccbaf1a2c38;hb=8d05291f42b3b42159b3fe91492aa4862f3d4405;hpb=ac2ba58425ae7498241f07fa11c6506f83f0f72b diff --git a/php_http_request_method.c b/php_http_request_method.c index d159ad8..b4b3567 100644 --- a/php_http_request_method.c +++ b/php_http_request_method.c @@ -6,12 +6,10 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2010, Michael Wallner | + | Copyright (c) 2004-2011, Michael Wallner | +--------------------------------------------------------------------+ */ -/* $Id: http_request_method_api.c 292841 2009-12-31 08:48:57Z mike $ */ - #include "php_http.h" #include @@ -52,7 +50,7 @@ static PHP_HTTP_STRLIST(php_http_request_methods) = PHP_HTTP_STRLIST_STOP ; -PHP_HTTP_API const char *php_http_request_method_name(php_http_request_method_t meth) +PHP_HTTP_API const char *php_http_request_method_name(php_http_request_method_t meth TSRMLS_DC) { if (meth > PHP_HTTP_NO_REQUEST_METHOD && meth < PHP_HTTP_MAX_REQUEST_METHOD) { return php_http_strlist_find(php_http_request_methods, 0, meth); @@ -204,7 +202,7 @@ PHP_MINIT_FUNCTION(http_request_method) { php_http_strlist_iterator_t std; - PHP_HTTP_REGISTER_CLASS(http\\request, Method, http_request_method, php_http_object_class_entry, 0); + PHP_HTTP_REGISTER_CLASS(http\\Request, Method, http_request_method, php_http_object_class_entry, 0); zend_declare_property_null(php_http_request_method_class_entry, ZEND_STRL("name"), ZEND_ACC_PROTECTED TSRMLS_CC);