logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pecl /http http_headers_api.c http_util_object.c php_http_util_object.: msg#00138

Subject: cvs: pecl /http http_headers_api.c http_util_object.c php_http_util_object.h
mike            Sat Nov 19 12:02:48 2005 EDT

  Modified files:              
    /pecl/http  http_headers_api.c http_util_object.c 
                php_http_util_object.h 
  Log:
  - aliases for HttpUtil
  - check ident_len of identifier
  
http://cvs.php.net/diff.php/pecl/http/http_headers_api.c?r1=1.34&r2=1.35&ty=u
Index: pecl/http/http_headers_api.c
diff -u pecl/http/http_headers_api.c:1.34 pecl/http/http_headers_api.c:1.35
--- pecl/http/http_headers_api.c:1.34   Sat Nov 19 11:50:15 2005
+++ pecl/http/http_headers_api.c        Sat Nov 19 12:02:48 2005
@@ -10,7 +10,7 @@
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_headers_api.c,v 1.34 2005/11/19 16:50:15 mike Exp $ */
+/* $Id: http_headers_api.c,v 1.35 2005/11/19 17:02:48 mike Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
@@ -179,7 +179,7 @@
                                        ++identifier;
                                        --ident_len;
                                }
-                               while (isspace(identifier[ident_len - 1])) {
+                               while (ident_len && 
isspace(identifier[ident_len - 1])) {
                                        identifier[--ident_len] = '\0';
                                }
                                
http://cvs.php.net/diff.php/pecl/http/http_util_object.c?r1=1.18&r2=1.19&ty=u
Index: pecl/http/http_util_object.c
diff -u pecl/http/http_util_object.c:1.18 pecl/http/http_util_object.c:1.19
--- pecl/http/http_util_object.c:1.18   Mon Oct 24 12:31:44 2005
+++ pecl/http/http_util_object.c        Sat Nov 19 12:02:48 2005
@@ -10,7 +10,7 @@
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_util_object.c,v 1.18 2005/10/24 16:31:44 mike Exp $ */
+/* $Id: http_util_object.c,v 1.19 2005/11/19 17:02:48 mike Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -50,6 +50,11 @@
        HTTP_ARG_VAL(result, 1)
 HTTP_END_ARGS;
 
+HTTP_BEGIN_ARGS(negotiateContentType, 1)
+       HTTP_ARG_VAL(supported, 0)
+       HTTP_ARG_VAL(result, 1)
+HTTP_END_ARGS;
+
 HTTP_BEGIN_ARGS(matchModified, 1)
        HTTP_ARG_VAL(last_modified, 0)
        HTTP_ARG_VAL(for_range, 0)
@@ -115,6 +120,7 @@
        HTTP_UTIL_ALIAS(buildUri, http_build_uri)
        HTTP_UTIL_ALIAS(negotiateLanguage, http_negotiate_language)
        HTTP_UTIL_ALIAS(negotiateCharset, http_negotiate_charset)
+       HTTP_UTIL_ALIAS(negotiateContentType, http_negotiate_content_type)
        HTTP_UTIL_ALIAS(matchModified, http_match_modified)
        HTTP_UTIL_ALIAS(matchEtag, http_match_etag)
        HTTP_UTIL_ALIAS(matchRequestHeader, http_match_request_header)
http://cvs.php.net/diff.php/pecl/http/php_http_util_object.h?r1=1.12&r2=1.13&ty=u
Index: pecl/http/php_http_util_object.h
diff -u pecl/http/php_http_util_object.h:1.12 
pecl/http/php_http_util_object.h:1.13
--- pecl/http/php_http_util_object.h:1.12       Mon Oct 24 12:31:46 2005
+++ pecl/http/php_http_util_object.h    Sat Nov 19 12:02:48 2005
@@ -10,7 +10,7 @@
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_util_object.h,v 1.12 2005/10/24 16:31:46 mike Exp $ */
+/* $Id: php_http_util_object.h,v 1.13 2005/11/19 17:02:48 mike Exp $ */
 
 #ifndef PHP_HTTP_UTIL_OBJECT_H
 #define PHP_HTTP_UTIL_OBJECT_H
@@ -25,6 +25,7 @@
 PHP_METHOD(HttpUtil, absoluteUri);
 PHP_METHOD(HttpUtil, negotiateLanguage);
 PHP_METHOD(HttpUtil, negotiateCharset);
+PHP_METHOD(HttpUtil, negotiateContentType);
 PHP_METHOD(HttpUtil, matchModified);
 PHP_METHOD(HttpUtil, matchEtag);
 PHP_METHOD(HttpUtil, parseHeaders);



<Prev in Thread] Current Thread [Next in Thread>