build and file maintenance
authorMichael Wallner <mike@php.net>
Thu, 28 Jul 2011 15:31:52 +0000 (15:31 +0000)
committerMichael Wallner <mike@php.net>
Thu, 28 Jul 2011 15:31:52 +0000 (15:31 +0000)
68 files changed:
config9.m4
php_http.c
php_http.h
php_http_buffer.c
php_http_buffer.h
php_http_cookie.c
php_http_cookie.h
php_http_curl.c
php_http_curl.h
php_http_encoding.c
php_http_encoding.h
php_http_env.c
php_http_env.h
php_http_env_response.c
php_http_env_response.h
php_http_etag.c
php_http_etag.h
php_http_exception.c
php_http_exception.h
php_http_filter.c
php_http_filter.h
php_http_header_parser.c
php_http_header_parser.h
php_http_headers.c
php_http_headers.h
php_http_info.c
php_http_info.h
php_http_message.c
php_http_message.h
php_http_message_body.c
php_http_message_body.h
php_http_message_parser.c
php_http_message_parser.h
php_http_misc.c
php_http_misc.h
php_http_negotiate.c
php_http_negotiate.h
php_http_neon.c
php_http_neon.h
php_http_object.c
php_http_object.h
php_http_params.c
php_http_params.h
php_http_persistent_handle.c
php_http_persistent_handle.h
php_http_property_proxy.c
php_http_property_proxy.h
php_http_querystring.c
php_http_querystring.h
php_http_request.c
php_http_request.h
php_http_request_datashare.c
php_http_request_datashare.h
php_http_request_factory.c
php_http_request_factory.h
php_http_request_info.c
php_http_request_method.c
php_http_request_method.h
php_http_request_pool.c
php_http_request_pool.h
php_http_resource_factory.c
php_http_resource_factory.h
php_http_strlist.c
php_http_strlist.h
php_http_url.c
php_http_url.h
php_http_version.c
php_http_version.h

index f9f3a47277798ae956b66ffdb33243ed420c08bc..bae4032c8a711f18e866832561c8dcb849a7c178 100644 (file)
@@ -137,222 +137,240 @@ dnl ----
 dnl NEON
 dnl ----
 
-       AC_MSG_CHECKING([for neon/ne_session.h])
-       NEON_DIR=
-       for i in "$PHP_HTTP_LIBNEON_DIR" /usr/local /usr /opt; do
-               if test -f "$i/include/neon/ne_session.h"; then
-                       NEON_DIR=$i
-                       break
-               fi
-       done
-
-       if test "x$NEON_DIR" = "x"; then
-               AC_MSG_RESULT([not found])
+       if test "$PHP_HTTP_LIBNEON_DIR" = "no"; then
+               AC_DEFINE([PHP_HTTP_HAVE_NEON], [0], [ ])
        else
-               AC_MSG_RESULT([found in $NEON_DIR])
-
-               AC_MSG_CHECKING([for neon-config])
-               NEON_CONFIG=
-               for i in "$NEON_DIR/bin/neon-config" "$NEON_DIR/neon-config" `which neon-config`; do
-                       if test -x "$i"; then
-                               NEON_CONFIG=$i
+               AC_MSG_CHECKING([for neon/ne_session.h])
+               NEON_DIR=
+               for i in "$PHP_HTTP_LIBNEON_DIR" /usr/local /usr /opt; do
+                       if test -f "$i/include/neon/ne_session.h"; then
+                               NEON_DIR=$i
                                break
                        fi
                done
-               if test "x$NEON_CONFIG" = "x"; then
+
+               if test "x$NEON_DIR" = "x"; then
                        AC_MSG_RESULT([not found])
-                       AC_MSG_ERROR([could not find neon-config])
+                       AC_DEFINE([PHP_HTTP_HAVE_NEON], [0], [ ])
                else
-                       AC_MSG_RESULT([found: $NEON_CONFIG])
-               fi
+                       AC_MSG_RESULT([found in $NEON_DIR])
 
-               AC_MSG_CHECKING([for libneon version])
-               PHP_HTTP_NEON_VERSION=`$NEON_CONFIG --version | $SED -re 's/^neon ([[^ :]]+).*/\1/g'`
-               if test "x$PHP_HTTP_NEON_VERSION" = "x"; then
-                       AC_MSG_RESULT([unknown])
-                       PHP_HTTP_NEON_VERSION="unknown"
-               else
-                       AC_MSG_RESULT([$PHP_HTTP_NEON_VERSION])
+                       AC_MSG_CHECKING([for neon-config])
+                       NEON_CONFIG=
+                       for i in "$NEON_DIR/bin/neon-config" "$NEON_DIR/neon-config" `which neon-config`; do
+                               if test -x "$i"; then
+                                       NEON_CONFIG=$i
+                                       break
+                               fi
+                       done
+                       if test "x$NEON_CONFIG" = "x"; then
+                               AC_MSG_RESULT([not found])
+                               AC_DEFINE([PHP_HTTP_HAVE_NEON], [0], [ ])
+                       else
+                               AC_MSG_RESULT([found: $NEON_CONFIG])
+
+                               AC_MSG_CHECKING([for libneon version])
+                               PHP_HTTP_NEON_VERSION=`$NEON_CONFIG --version | $SED -re 's/^neon ([[^ :]]+).*/\1/g'`
+                               if test "x$PHP_HTTP_NEON_VERSION" = "x"; then
+                                       AC_MSG_RESULT([unknown])
+                                       PHP_HTTP_NEON_VERSION="unknown"
+                               else
+                                       AC_MSG_RESULT([$PHP_HTTP_NEON_VERSION])
+                               fi
+                               AC_DEFINE_UNQUOTED([PHP_HTTP_NEON_VERSION], ["$PHP_HTTP_NEON_VERSION"], [neon-config --version])
+                               PHP_ADD_INCLUDE($NEON_DIR/include)
+                               PHP_ADD_LIBRARY_WITH_PATH(neon, $NEON_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
+                               AC_DEFINE([PHP_HTTP_HAVE_NEON], [1], [Have libneon support])
+                               HTTP_HAVE_A_REQUEST_LIB=true
+                       fi
                fi
-               AC_DEFINE_UNQUOTED([PHP_HTTP_NEON_VERSION], ["$PHP_HTTP_NEON_VERSION"], [neon-config --version])
-               PHP_ADD_INCLUDE($NEON_DIR/include)
-               PHP_ADD_LIBRARY_WITH_PATH(neon, $NEON_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
-               AC_DEFINE([PHP_HTTP_HAVE_NEON], [1], [Have libneon support])
-               HTTP_HAVE_A_REQUEST_LIB=true
        fi
-       
+
 dnl ----
 dnl SERF
 dnl ----
 
-       AC_MSG_CHECKING([for serf-?/serf.h])
-       SERF_DIR=
-       for i in "$PHP_HTTP_LIBSERF_DIR" /usr/local /usr /opt; do
-               if test -f "$i/include/serf-0/serf.h"; then
-                       SERF_DIR=$i
-                       SERF_VER=0
-                       break
-               elif test -f "$i/include/serf-1/serf.h"; then
-                       SERF_DIR=$i
-                       SERF_VER=1
-               fi
-       done
-
-       if test "x$SERF_DIR" = "x"; then
-               AC_MSG_RESULT([not found])
+       if test "$PHP_HTTP_LIBSERF_DIR" = "no"; then
+               AC_DEFINE([PHP_HTTP_HAVE_SERF], [0], [ ])
        else
-               AC_MSG_RESULT([found in $SERF_DIR])
+               AC_MSG_CHECKING([for serf-?/serf.h])
+               SERF_DIR=
+               for i in "$PHP_HTTP_LIBSERF_DIR" /usr/local /usr /opt; do
+                       if test -f "$i/include/serf-0/serf.h"; then
+                               SERF_DIR=$i
+                               SERF_VER=0
+                               break
+                       elif test -f "$i/include/serf-1/serf.h"; then
+                               SERF_DIR=$i
+                               SERF_VER=1
+                       fi
+               done
 
-               PHP_ADD_INCLUDE($SERF_DIR/include/serf-$SERV_VER)
-               PHP_ADD_LIBRARY_WITH_PATH(serf-$SERF_VER, $SERF_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
-               AC_DEFINE([PHP_HTTP_HAVE_SERF], [1], [HAve libserf support])
-               HTTP_HAVE_A_REQUEST_LIB=true
+               if test "x$SERF_DIR" = "x"; then
+                       AC_MSG_RESULT([not found])
+                       AC_DEFINE([PHP_HTTP_HAVE_SERF], [0], [ ])
+               else
+                       AC_MSG_RESULT([found in $SERF_DIR])
+
+                       PHP_ADD_INCLUDE($SERF_DIR/include/serf-$SERV_VER)
+                       PHP_ADD_LIBRARY_WITH_PATH(serf-$SERF_VER, $SERF_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
+                       AC_DEFINE([PHP_HTTP_HAVE_SERF], [1], [Have libserf support])
+                       HTTP_HAVE_A_REQUEST_LIB=true
+               fi
        fi
        
 dnl ----
 dnl CURL
 dnl ----
-       AC_MSG_CHECKING([for curl/curl.h])
-       CURL_DIR=
-       for i in "$PHP_HTTP_LIBCURL_DIR" /usr/local /usr /opt; do
-               if test -f "$i/include/curl/curl.h"; then
-                       CURL_DIR=$i
-                       break
-               fi
-       done
-       if test "x$CURL_DIR" = "x"; then
-               AC_MSG_RESULT([not found])
+
+       if test "$PHP_HTTP_LIBCURL_DIR" = "no"; then
+               AC_DEFINE([PHP_HTTP_HAVE_CURL], [0], [ ])
        else
-               AC_MSG_RESULT([found in $CURL_DIR])
-               
-               AC_MSG_CHECKING([for curl-config])
-               CURL_CONFIG=
-               for i in "$CURL_DIR/bin/curl-config" "$CURL_DIR/curl-config" `which curl-config`; do
-                       if test -x "$i"; then
-                               CURL_CONFIG=$i
+               AC_MSG_CHECKING([for curl/curl.h])
+               CURL_DIR=
+               for i in "$PHP_HTTP_LIBCURL_DIR" /usr/local /usr /opt; do
+                       if test -f "$i/include/curl/curl.h"; then
+                               CURL_DIR=$i
                                break
                        fi
                done
-               if test "x$CURL_CONFIG" = "x"; then
+               if test "x$CURL_DIR" = "x"; then
                        AC_MSG_RESULT([not found])
-                       AC_MSG_ERROR([could not find curl-config])
                else
-                       AC_MSG_RESULT([found: $CURL_CONFIG])
-               fi
+                       AC_MSG_RESULT([found in $CURL_DIR])
                
-               dnl Debian stable has currently 7.18.2
-               AC_MSG_CHECKING([for curl version >= 7.18.2])
-               CURL_VERSION=`$CURL_CONFIG --version | $SED -e 's/[[^0-9\.]]//g'`
-               AC_MSG_RESULT([$CURL_VERSION])
-               if test `echo $CURL_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*10000 + $2*100 + $3}'` -lt 71802; then
-                       AC_MSG_ERROR([libcurl version greater or equal to 7.18.2 required])
-               fi
+                       AC_MSG_CHECKING([for curl-config])
+                       CURL_CONFIG=
+                       for i in "$CURL_DIR/bin/curl-config" "$CURL_DIR/curl-config" `which curl-config`; do
+                               if test -x "$i"; then
+                                       CURL_CONFIG=$i
+                                       break
+                               fi
+                       done
+                       if test "x$CURL_CONFIG" = "x"; then
+                               AC_MSG_RESULT([not found])
+                               AC_MSG_ERROR([could not find curl-config])
+                       else
+                               AC_MSG_RESULT([found: $CURL_CONFIG])
+                       fi
+               
+                       dnl Debian stable has currently 7.18.2
+                       AC_MSG_CHECKING([for curl version >= 7.18.2])
+                       CURL_VERSION=`$CURL_CONFIG --version | $SED -e 's/[[^0-9\.]]//g'`
+                       AC_MSG_RESULT([$CURL_VERSION])
+                       if test `echo $CURL_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*10000 + $2*100 + $3}'` -lt 71802; then
+                               AC_MSG_ERROR([libcurl version greater or equal to 7.18.2 required])
+                       fi
                
-               dnl
-               dnl compile tests
-               dnl
+                       dnl
+                       dnl compile tests
+                       dnl
                
-               save_INCLUDES="$INCLUDES"
-               INCLUDES=
-               save_LIBS="$LIBS"
-               LIBS=
-               save_CFLAGS="$CFLAGS"
-               CFLAGS=`$CURL_CONFIG --cflags`
-               save_LDFLAGS="$LDFLAGS"
-               LDFLAGS=`$CURL_CONFIG --libs`
-               LDFLAGS="$LDFLAGS $ld_runpath_switch$CURL_DIR/$PHP_LIBDIR"
+                       save_INCLUDES="$INCLUDES"
+                       INCLUDES=
+                       save_LIBS="$LIBS"
+                       LIBS=
+                       save_CFLAGS="$CFLAGS"
+                       CFLAGS=`$CURL_CONFIG --cflags`
+                       save_LDFLAGS="$LDFLAGS"
+                       LDFLAGS=`$CURL_CONFIG --libs`
+                       LDFLAGS="$LDFLAGS $ld_runpath_switch$CURL_DIR/$PHP_LIBDIR"
                
-               AC_MSG_CHECKING([for SSL support in libcurl])
-               CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
-               if test "$CURL_SSL" = "SSL"; then
-                       AC_MSG_RESULT([yes])
-                       AC_DEFINE([PHP_HTTP_HAVE_SSL], [1], [ ])
+                       AC_MSG_CHECKING([for SSL support in libcurl])
+                       CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
+                       if test "$CURL_SSL" = "SSL"; then
+                               AC_MSG_RESULT([yes])
+                               AC_DEFINE([PHP_HTTP_HAVE_SSL], [1], [ ])
                        
-                       AC_MSG_CHECKING([for openssl support in libcurl])
-                       AC_TRY_RUN([
-                               #include <curl/curl.h>
-                               int main(int argc, char *argv[]) {
-                                       curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
-                                       if (data && data->ssl_version && *data->ssl_version) {
-                                               const char *ptr = data->ssl_version;
-                                               while(*ptr == ' ') ++ptr;
-                                               return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
+                               AC_MSG_CHECKING([for openssl support in libcurl])
+                               AC_TRY_RUN([
+                                       #include <curl/curl.h>
+                                       int main(int argc, char *argv[]) {
+                                               curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
+                                               if (data && data->ssl_version && *data->ssl_version) {
+                                                       const char *ptr = data->ssl_version;
+                                                       while(*ptr == ' ') ++ptr;
+                                                       return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
+                                               }
+                                               return 1;
                                        }
-                                       return 1;
-                               }
-                       ], [
-                               AC_MSG_RESULT([yes])
-                               AC_CHECK_HEADER([openssl/crypto.h], [
-                                       AC_DEFINE([PHP_HTTP_HAVE_OPENSSL], [1], [ ])
+                               ], [
+                                       AC_MSG_RESULT([yes])
+                                       AC_CHECK_HEADER([openssl/crypto.h], [
+                                               AC_DEFINE([PHP_HTTP_HAVE_OPENSSL], [1], [ ])
+                                       ])
+                               ], [
+                                       AC_MSG_RESULT([no])
+                               ], [
+                                       AC_MSG_RESULT([no])
                                ])
-                       ], [
-                               AC_MSG_RESULT([no])
-                       ], [
-                               AC_MSG_RESULT([no])
-                       ])
                        
-                       AC_MSG_CHECKING([for gnutls support in libcurl])
-                       AC_TRY_RUN([
-                               #include <curl/curl.h>
-                               int main(int argc, char *argv[]) {
-                                       curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
-                                       if (data && data->ssl_version && *data->ssl_version) {
-                                               const char *ptr = data->ssl_version;
-                                               while(*ptr == ' ') ++ptr;
-                                               return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
+                               AC_MSG_CHECKING([for gnutls support in libcurl])
+                               AC_TRY_RUN([
+                                       #include <curl/curl.h>
+                                       int main(int argc, char *argv[]) {
+                                               curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
+                                               if (data && data->ssl_version && *data->ssl_version) {
+                                                       const char *ptr = data->ssl_version;
+                                                       while(*ptr == ' ') ++ptr;
+                                                       return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
+                                               }
+                                               return 1;
                                        }
-                                       return 1;
-                               }
-                       ], [
-                               AC_MSG_RESULT([yes])
-                               AC_CHECK_HEADER([gcrypt.h], [
-                                       AC_DEFINE([PHP_HTTP_HAVE_GNUTLS], [1], [ ])
+                               ], [
+                                       AC_MSG_RESULT([yes])
+                                       AC_CHECK_HEADER([gcrypt.h], [
+                                               AC_DEFINE([PHP_HTTP_HAVE_GNUTLS], [1], [ ])
+                                       ])
+                               ], [
+                                       AC_MSG_RESULT([no])
+                               ], [
+                                       AC_MSG_RESULT([no])
                                ])
-                       ], [
-                               AC_MSG_RESULT([no])
-                       ], [
+                       else
                                AC_MSG_RESULT([no])
-                       ])
-               else
-                       AC_MSG_RESULT([no])
-               fi
+                       fi
                
-               INCLUDES="$save_INCLUDES"
-               LIBS="$save_LIBS"
-               CFLAGS="$save_CFLAGS"
-               LDFLAGS="$save_LDFLAGS"
+                       INCLUDES="$save_INCLUDES"
+                       LIBS="$save_LIBS"
+                       CFLAGS="$save_CFLAGS"
+                       LDFLAGS="$save_LDFLAGS"
                
-               dnl end compile tests
+                       dnl end compile tests
                
-               AC_MSG_CHECKING([for bundled SSL CA info])
-               CURL_CAINFO=
-               for i in `$CURL_CONFIG --ca` "/etc/ssl/certs/ca-certificates.crt"; do
-                       if test -f "$i"; then
-                               CURL_CAINFO="$i"
-                               break
+                       AC_MSG_CHECKING([for bundled SSL CA info])
+                       CURL_CAINFO=
+                       for i in `$CURL_CONFIG --ca` "/etc/ssl/certs/ca-certificates.crt"; do
+                               if test -f "$i"; then
+                                       CURL_CAINFO="$i"
+                                       break
+                               fi
+                       done
+                       if test "x$CURL_CAINFO" = "x"; then
+                               AC_MSG_RESULT([not found])
+                       else
+                               AC_MSG_RESULT([$CURL_CAINFO])
+                               AC_DEFINE_UNQUOTED([PHP_HTTP_CURL_CAINFO], ["$CURL_CAINFO"], [path to bundled SSL CA info])
                        fi
-               done
-               if test "x$CURL_CAINFO" = "x"; then
-                       AC_MSG_RESULT([not found])
-               else
-                       AC_MSG_RESULT([$CURL_CAINFO])
-                       AC_DEFINE_UNQUOTED([PHP_HTTP_CURL_CAINFO], ["$CURL_CAINFO"], [path to bundled SSL CA info])
-               fi
                
-               PHP_ADD_INCLUDE($CURL_DIR/include)
-               PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
-               PHP_EVAL_LIBLINE(`$CURL_CONFIG --libs`, HTTP_SHARED_LIBADD)
-               AC_DEFINE([PHP_HTTP_HAVE_CURL], [1], [Have libcurl support])
-               HTTP_HAVE_A_REQUEST_LIB=true
+                       PHP_ADD_INCLUDE($CURL_DIR/include)
+                       PHP_ADD_LIBRARY_WITH_PATH(curl, $CURL_DIR/$PHP_LIBDIR, HTTP_SHARED_LIBADD)
+                       PHP_EVAL_LIBLINE(`$CURL_CONFIG --libs`, HTTP_SHARED_LIBADD)
+                       AC_DEFINE([PHP_HTTP_HAVE_CURL], [1], [Have libcurl support])
+                       HTTP_HAVE_A_REQUEST_LIB=true
+               fi
        fi
 
-       dnl ----
-       dnl EVENT
-       dnl ----
-       
-       if test "$PHP_HTTP_LIBEVENT_DIR" != "no"; then
+dnl ----
+dnl EVENT
+dnl ----
+
+       if test "$PHP_HTTP_LIBEVENT_DIR" = "no"; then
+               AC_DEFINE([PHP_HTTP_HAVE_EVENT], [0], [ ])
+       else
                HTTP_HAVE_PHP_EXT([event], [
                        AC_MSG_WARN([event support is incompatible with pecl/event; continuing without libevent support])
+                       AC_DEFINE([PHP_HTTP_HAVE_EVENT], [0], [ ])
                ], [
                        AC_MSG_CHECKING([for event.h])
                        EVENT_DIR=
@@ -365,6 +383,7 @@ dnl ----
                        if test "x$EVENT_DIR" = "x"; then
                                AC_MSG_RESULT([not found])
                                AC_MSG_WARN([continuing without libevent support])
+                               AC_DEFINE([PHP_HTTP_HAVE_EVENT], [0], [ ])
                        else
                                AC_MSG_RESULT([found in $EVENT_DIR])
                                
@@ -388,8 +407,8 @@ dnl ----
        fi
 
 PHP_ARG_WITH([http-shared-deps], [whether to depend on extensions which have been built shared],
-[  --without-http-shared-deps     HTTP: do not depend on extensions like hash
-                                        and iconv (when they're built shared)], $PHP_HTTP, $PHP_HTTP)
+[  --without-http-shared-deps   HTTP: do not depend on extensions like hash
+                                     and iconv (when they're built shared)], $PHP_HTTP, $PHP_HTTP)
 dnl ----
 dnl HASH
 dnl ----
@@ -502,12 +521,7 @@ dnl ----
                php_http_url.h \
                php_http_version.h \
        "
-       ifdef([PHP_INSTALL_HEADERS], [
-               PHP_INSTALL_HEADERS(ext/http, $PHP_HTTP_HEADERS)
-       ], [
-               PHP_SUBST([PHP_HTTP_HEADERS])
-               PHP_ADD_MAKEFILE_FRAGMENT
-       ])
+       PHP_INSTALL_HEADERS(ext/http, $PHP_HTTP_HEADERS)
 
        AC_DEFINE([HAVE_HTTP], [1], [Have extended HTTP support])
 fi
index fb49548a7ce8a9d19a2a3179ed77fb733d277a9c..b71e6c26115722c305634811dbe31ef5909a1d96 100644 (file)
@@ -6,24 +6,25 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http.c 300300 2010-06-09 07:29:35Z mike $ */
-
 #include "php_http.h"
 
 #include <zlib.h>
-#ifdef PHP_HTTP_HAVE_CURL
+#if PHP_HTTP_HAVE_CURL
 #      include <curl/curl.h>
-#      ifdef PHP_HTTP_HAVE_EVENT
+#      if PHP_HTTP_HAVE_EVENT
 #              include <event.h>
 #      endif
 #endif
-#ifdef PHP_HTTP_HAVE_NEON
+#if PHP_HTTP_HAVE_NEON
 #      include "neon/ne_utils.h"
 #endif
+#if PHP_HTTP_HAVE_SERF
+#      include "serf.h"
+#endif
 
 #include <main/php_ini.h>
 #include <ext/standard/info.h>
@@ -47,13 +48,13 @@ PHP_MINFO_FUNCTION(http);
 
 static zend_module_dep http_module_deps[] = {
        ZEND_MOD_REQUIRED("spl")
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
        ZEND_MOD_REQUIRED("hash")
 #endif
-#ifdef PHP_HTTP_HAVE_ICONV
+#if PHP_HTTP_HAVE_ICONV
        ZEND_MOD_REQUIRED("iconv")
 #endif
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        ZEND_MOD_CONFLICTS("event")
 #endif
        {NULL, NULL, NULL, 0}
@@ -147,8 +148,12 @@ PHP_MINIT_FUNCTION(http)
        || SUCCESS != PHP_MINIT_CALL(http_querystring)
        || SUCCESS != PHP_MINIT_CALL(http_request_factory)
        || SUCCESS != PHP_MINIT_CALL(http_request)
+#if PHP_HTTP_HAVE_CURL
        || SUCCESS != PHP_MINIT_CALL(http_curl)
+#endif
+#if PHP_HTTP_HAVE_NEON
        || SUCCESS != PHP_MINIT_CALL(http_neon)
+#endif
        || SUCCESS != PHP_MINIT_CALL(http_request_datashare)
        || SUCCESS != PHP_MINIT_CALL(http_request_method)
        || SUCCESS != PHP_MINIT_CALL(http_request_pool)
@@ -170,8 +175,12 @@ PHP_MSHUTDOWN_FUNCTION(http)
        
        if (0
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_message)
+#if PHP_HTTP_HAVE_CURL
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_curl)
+#endif
+#if PHP_HTTP_HAVE_NEON
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_neon)
+#endif
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_request_datashare)
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_request_factory)
        || SUCCESS != PHP_MSHUTDOWN_CALL(http_persistent_handle)
@@ -187,7 +196,9 @@ PHP_RINIT_FUNCTION(http)
        if (0
        || SUCCESS != PHP_RINIT_CALL(http_env)
        || SUCCESS != PHP_RINIT_CALL(http_request_datashare)
+#if PHP_HTTP_HAVE_CURL
        || SUCCESS != PHP_RINIT_CALL(http_curl)
+#endif
        ) {
                return FAILURE;
        }
@@ -217,7 +228,7 @@ PHP_MINFO_FUNCTION(http)
        php_info_print_table_start();
        php_info_print_table_header(3, "Used Library", "Compiled", "Linked");
        php_info_print_table_row(3, "libz", ZLIB_VERSION, zlibVersion());
-#ifdef PHP_HTTP_HAVE_CURL
+#if PHP_HTTP_HAVE_CURL
        {
                curl_version_info_data *cv = curl_version_info(CURLVERSION_NOW);
                php_info_print_table_row(3, "libcurl", LIBCURL_VERSION, cv->version);
@@ -225,7 +236,7 @@ PHP_MINFO_FUNCTION(http)
 #else
        php_info_print_table_row(3, "libcurl", "disabled", "disabled");
 #endif
-#ifdef PHP_HTTP_HAVE_NEON
+#if PHP_HTTP_HAVE_NEON
        {
                char ne_v[16] = {0};
                sscanf(ne_version_string(), "neon %15[^ :]", &ne_v[0]);
@@ -235,7 +246,7 @@ PHP_MINFO_FUNCTION(http)
        php_info_print_table_row(3, "libneon", "disabled", "disabled");
 #endif
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        php_info_print_table_row(3, "libevent", PHP_HTTP_EVENT_VERSION, event_get_version());
 #else
        php_info_print_table_row(3, "libevent", "disabled", "disabled");
index 4d2b92962ae5063aacd97c46d18544be72989fb3..0cd759cf18302bf76a38f2bc2efaf8dfe58ed662 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http.h 300300 2010-06-09 07:29:35Z mike $ */
-
 #ifndef PHP_EXT_HTTP_H
 #define PHP_EXT_HTTP_H
 
@@ -118,8 +116,8 @@ ZEND_BEGIN_MODULE_GLOBALS(php_http)
        struct php_http_env_globals env;
        struct php_http_persistent_handle_globals persistent_handle;
        struct php_http_request_datashare_globals request_datashare;
-#ifdef PHP_HTTP_HAVE_EVENT
-       struct php_http_request_pool_globals request_pool;
+#if PHP_HTTP_HAVE_CURL && PHP_HTTP_HAVE_EVENT
+       struct php_http_curl_globals curl;
 #endif
 ZEND_END_MODULE_GLOBALS(php_http)
 
index 41fd48a54655ac09cf5e142dfc0d2d49e840e132..7736259a78622a41827124f22d5792a4dd7d272c 100644 (file)
@@ -1,5 +1,14 @@
-
-/* $Id: php_http_buffer_t.c 211942 2006-04-24 17:17:09Z mike $ */
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php.h"
 #include "php_http_buffer.h"
index ee78c41165f048ea5bd4b505c3dd141401dc4f7c..384120e231ce025f161d7d6f703b356625ba2207 100644 (file)
@@ -1,8 +1,17 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
-/* $Id: php_http_buffer_t.h 229282 2007-02-07 15:31:50Z mike $ */
-
-#ifndef _PHP_HTTP_BUFFER_H
-#define _PHP_HTTP_BUFFER_H
+#ifndef PHP_HTTP_BUFFER_H
+#define PHP_HTTP_BUFFER_H
 
 #ifndef PHP_HTTP_BUFFER_DEFAULT_SIZE
 #      define PHP_HTTP_BUFFER_DEFAULT_SIZE 256
index 146b08656c74ead4f50624f2bb84051db22341f4..1bfa734fd60ebc8c05bd1830cb086600c97e1c94 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_cookie_api.c 298662 2010-04-27 13:42:32Z mike $ */
-
 #include "php_http.h"
 
 #include <ext/date/php_date.h>
index 5d2d3a33e3a13ecfaabdcc5547653a9c81eac398..c263b0cf0afe33dac198315b30bbbd1813bdc6bb 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_cookie_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_COOKIE_H
 #define PHP_HTTP_COOKIE_H
 
index 377a0ea43d8398743de8bc9d0b29b6899df3f494..0c30f87e158f335d6de4698de8aabd32f320f1fe 100644 (file)
@@ -1,12 +1,26 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
+
+#if PHP_HTTP_HAVE_CURL
+
 #include "php_http_request.h"
 #include "php_http_request_pool.h"
 
 #include <curl/curl.h>
 #define PHP_HTTP_CURL_VERSION(x, y, z) (LIBCURL_VERSION_NUM >= (((x)<<16) + ((y)<<8) + (z)))
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
 #      include <event.h>
 #endif
 
@@ -47,7 +61,7 @@ typedef struct php_http_curl_request_pool {
 
        int unfinished;  /* int because of curl_multi_perform() */
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        struct event *timeout;
        unsigned useevents:1;
        unsigned runsocket:1;
@@ -395,7 +409,7 @@ static void php_http_curl_request_pool_responsehandler(php_http_request_pool_t *
 }
 
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
 
 typedef struct php_http_request_pool_event {
        struct event evnt;
@@ -1340,7 +1354,7 @@ static void php_http_curl_request_pool_dtor(php_http_request_pool_t *h)
        php_http_curl_request_pool_t *curl = h->ctx;
        TSRMLS_FETCH_FROM_CTX(h->ts);
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        if (curl->timeout) {
                efree(curl->timeout);
                curl->timeout = NULL;
@@ -1403,7 +1417,7 @@ static STATUS php_http_curl_request_pool_wait(php_http_request_pool_t *h, struct
        struct timeval timeout;
        php_http_curl_request_pool_t *curl = h->ctx;
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        if (curl->useevents) {
                TSRMLS_FETCH_FROM_CTX(h->ts);
 
@@ -1444,10 +1458,10 @@ static STATUS php_http_curl_request_pool_wait(php_http_request_pool_t *h, struct
 static int php_http_curl_request_pool_once(php_http_request_pool_t *h)
 {
        php_http_curl_request_pool_t *curl = h->ctx;
-       TSRMLS_FETCH_FROM_CTX(h->ts);
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        if (curl->useevents) {
+               TSRMLS_FETCH_FROM_CTX(h->ts);
                php_http_error(HE_WARNING, PHP_HTTP_E_RUNTIME, "not implemented");
                return FAILURE;
        }
@@ -1460,7 +1474,7 @@ static int php_http_curl_request_pool_once(php_http_request_pool_t *h)
        return curl->unfinished;
 
 }
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
 static void dolog(int i, const char *m) {
        fprintf(stderr, "%d: %s\n", i, m);
 }
@@ -1469,7 +1483,7 @@ static STATUS php_http_curl_request_pool_exec(php_http_request_pool_t *h)
 {
        TSRMLS_FETCH_FROM_CTX(h->ts);
 
-#ifdef PHP_HTTP_HAVE_EVENT
+#if PHP_HTTP_HAVE_EVENT
        php_http_curl_request_pool_t *curl = h->ctx;
 
        if (curl->useevents) {
@@ -2140,11 +2154,23 @@ PHP_MSHUTDOWN_FUNCTION(http_curl)
 
 PHP_RINIT_FUNCTION(http_curl)
 {
-#ifdef PHP_HTTP_HAVE_EVENT
-       if (!PHP_HTTP_G->request_pool.event_base && !(PHP_HTTP_G->request_pool.event_base = event_init())) {
+#if PHP_HTTP_HAVE_EVENT
+       if (!PHP_HTTP_G->curl.event_base && !(PHP_HTTP_G->curl.event_base = event_init())) {
                return FAILURE;
        }
 #endif
 
        return SUCCESS;
 }
+
+#endif /* PHP_HTTP_HAVE_CURL */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 6e9cc1623053a888a905576013977729f3a15516..bd1c61ab5f686c6d9f8f9ccc2cf4664aefb0f399 100644 (file)
@@ -1,6 +1,20 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_CURL_H
 #define PHP_HTTP_CURL_H
 
+#if PHP_HTTP_HAVE_CURL
+
 PHP_HTTP_API php_http_request_ops_t *php_http_curl_get_request_ops(void);
 PHP_HTTP_API php_http_request_pool_ops_t *php_http_curl_get_request_pool_ops(void);
 PHP_HTTP_API php_http_request_datashare_ops_t *php_http_curl_get_request_datashare_ops(void);
@@ -9,8 +23,8 @@ extern PHP_MINIT_FUNCTION(http_curl);
 extern PHP_MSHUTDOWN_FUNCTION(http_curl);
 extern PHP_RINIT_FUNCTION(http_curl);
 
-#ifdef PHP_HTTP_HAVE_EVENT
-struct php_http_request_pool_globals {
+#if PHP_HTTP_HAVE_EVENT
+struct php_http_curl_globals {
        void *event_base;
 };
 #endif
@@ -22,4 +36,15 @@ extern zend_function_entry php_http_curl_method_entry[];
 
 PHP_METHOD(HttpCURL, __construct);
 
-#endif
+#endif /* PHP_HTTP_HAVE_CURL */
+#endif /* PHP_HTTP_CURL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index e40de8af0098538469dc0af46f66f83dc49b119d..48eb1c36eef2bf1436bd857d15a27ad086c81d56 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_encoding_api.c 298592 2010-04-26 11:47:29Z mike $ */
-
 #include "php_http.h"
 
 #include <zlib.h>
index 23a33022ec8c4a2511ef1c6c82cd55e445be011d..603880a7ca94fb02f3f033ab9cd80d30b85831f5 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_encoding_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_ENCODING_H
 #define PHP_HTTP_ENCODING_H
 
index 8f4036ab9013f114cb6e1de994ac80ab6e4143df..8cdbb73e198072edc4b7f43e8854665fdbe2f48f 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id $ */
-
 #include "php_http.h"
 
 #include <main/SAPI.h>
index 5fb5e5b6a02f419cf730866af387e07cf16ff26c..0fab82e4a15a254ee8b290d23ae5842c544a77f3 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id$ */
-
 #ifndef PHP_HTTP_ENV_H
 #define PHP_HTTP_ENV_H
 
index a374b425c74932ecd09642b034015ea6e2a53a39..cc739df2aff199e2e20c39d25afdfc82f36e6d4e 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id $ */
-
 #include "php_http.h"
 
 #include <main/SAPI.h>
index c6d5f0572596ae1279f2eb0fbb9305ec2656f630..d15b2bc284235c35bb63ceeace6ae4050987ea12 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_ENV_RESPONSE_H
 #define PHP_HTTP_ENV_RESPONSE_H
 
@@ -58,3 +70,13 @@ PHP_METHOD(HttpEnvResponse, send);
 PHP_MINIT_FUNCTION(http_env_response);
 
 #endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 87164fef22b3406faf0755a4b41c30cc4bdcf19b..543ce5fcf4078721953e94b8edebb7e12c737972 100644 (file)
@@ -1,7 +1,18 @@
-#include "php_http.h"
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
+#include "php_http.h"
 
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
 #      include "php_hash.h"
 #endif
 
@@ -14,7 +25,7 @@ PHP_HTTP_API php_http_etag_t *php_http_etag_init(const char *mode TSRMLS_DC)
        void *ctx;
        php_http_etag_t *e;
 
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
        const php_hash_ops *eho = NULL;
 
        if (mode && (eho = php_hash_fetch_ops(mode, strlen(mode)))) {
@@ -46,7 +57,7 @@ PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e)
        unsigned char digest[128] = {0};
        char *etag = NULL;
 
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
        const php_hash_ops *eho = NULL;
 
        if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
@@ -73,7 +84,7 @@ PHP_HTTP_API char *php_http_etag_finish(php_http_etag_t *e)
 
 PHP_HTTP_API size_t php_http_etag_update(php_http_etag_t *e, const char *data_ptr, size_t data_len)
 {
-#ifdef PHP_HTTP_HAVE_HASH
+#if PHP_HTTP_HAVE_HASH
        const php_hash_ops *eho = NULL;
 
        if (e->mode && (eho = php_hash_fetch_ops(e->mode, strlen(e->mode)))) {
@@ -95,3 +106,13 @@ PHP_HTTP_API size_t php_http_etag_update(php_http_etag_t *e, const char *data_pt
        return data_len;
 }
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 1ef7b2308c537674a6d832fb095d3ca60e50959f..899ec1c5af92fc211f9c45678aebd0e3651fd2ff 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_ETAG_H
 #define PHP_HTTP_ETAG_H
 
@@ -31,3 +43,13 @@ static inline char *php_http_etag_digest(const unsigned char *digest, int len)
 }
 
 #endif /* PHP_HTTP_ETAG_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 8b5800e2d4a08862a6599ee541407fa4f2115b0b..698e047b17d91bd25883d9b39167073c628af8b9 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_exception_object.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 #include <Zend/zend_exceptions.h>
index c461b1919070010770fc6ecebb9c080c4ed36f91..ccc3aaa79a705640615314f0e2a9cf941a62c393 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_exception_object.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_EXCEPTION_H
 #define PHP_HTTP_EXCEPTION_H
 
index 9dd0827d016b935cd5ec8c855d98433c6f9b2258..cdbc4088b4a5edbf8655144376a3eaece71c79c8 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_filter_api.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 PHP_MINIT_FUNCTION(http_filter)
index c8cb37dff60748117d03bec9a435b27e6761855d..4ba7ad33543826b275a2d012df2f23d102bede0a 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_filter_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_FILTER_H
 #define PHP_HTTP_FILTER_H
 
index c0b4515fe39ac2f5d2843476915e7fadd7c322b9..d0b6c52e4d7aee512262976522c7bd70ae63d7be 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
@@ -197,3 +208,13 @@ PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parse
 
        return php_http_header_parser_state_is(parser);
 }
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 0d52930da09067030085ac876a3e527839868659..171ed0ba3350acb7540aa76e7f29f72bab9f5ee0 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_HEADER_PARSER_H
 #define PHP_HTTP_HEADER_PARSER_H
 
@@ -39,3 +51,13 @@ PHP_HTTP_API void php_http_header_parser_free(php_http_header_parser_t **parser)
 PHP_HTTP_API STATUS php_http_header_parser_parse(php_http_header_parser_t *parser, php_http_buffer_t *buffer, unsigned flags, HashTable *headers, php_http_info_callback_t callback_func, void *callback_arg);
 
 #endif /* PHP_HTTP_HEADER_PARSER_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 0c4cbfa354fe6c5396ef3654fb5a396e823457b8..24a4854a080bf713f22b83108140a99f636f812e 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_headers_api.c 300300 2010-06-09 07:29:35Z mike $ */
-
 #include "php_http.h"
 
 PHP_HTTP_API STATUS php_http_headers_parse(const char *header, size_t length, HashTable *headers, php_http_info_callback_t callback_func, void **callback_data TSRMLS_DC)
index 8cc0b8aaafadad78bb978cafea96e70feea2d3b0..315a6dba1d1ac91ca3cbdf97c3fccb500ca73333 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_headers_api.h 300300 2010-06-09 07:29:35Z mike $ */
-
 #ifndef PHP_HTTP_HEADERS_H
 #define PHP_HTTP_HEADERS_H
 
index 534eb2c48360c4a50c815d9a776321d9a10a4721..80d4ad8d480696dbc8d80caeadb3300094e0fdf9 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_info_api.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 PHP_HTTP_API void php_http_info_default_callback(void **nothing, HashTable **headers, php_http_info_t *info TSRMLS_DC)
index 2e47d1935668621a1836b38d1a3ffefcda2f2c45..ce65fd04089a7d70c29892b0e1130b0973c81bb3 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_info_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_INFO_H
 #define PHP_HTTP_INFO_H
 
index 20ed46f2648dfc2bde6cf1c1f6543d5bd63a1dfe..a99a0bb2ecf42ca70e7ab45c4f6379e480b5d62d 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_message_api.c 298689 2010-04-28 06:50:06Z mike $ */
-
 #include "php_http.h"
 
 #include <main/SAPI.h>
index 65509e72a0a3efa904b4e30496f1161a6b119ac3..1890e575bbaa4bc31326e920e611200798cabc7c 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_message.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_MESSAGE_H
 #define PHP_HTTP_MESSAGE_H
 
index 5e47a6a2c4134669e96f9cc4f52aabdb39508819..a52e8264acb741c6651ce471265f8eaff1485e19 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_message_body.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 #include <libgen.h>
index e0ff8d96ca18366f098ebcf21fd408187f0e82d5..74936c0200b215e1685978517a5b57342d6c9bf0 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_message_body_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_MESSAGE_BODY_H
 #define PHP_HTTP_MESSAGE_BODY_H
 
index fce24ed2cffc4e49eae22f457f66c5dad3303f9f..3eb85719f2e8fe5523852976fef814cc5e8c0cf2 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #include "php_http.h"
 
 typedef struct php_http_message_parser_state_spec {
@@ -401,3 +413,13 @@ PHP_HTTP_API php_http_message_parser_state_t php_http_message_parser_parse(php_h
 
        return php_http_message_parser_state_is(parser);
 }
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index dcde640fb50b8fbf880f04d2c65ba8f874517630..31c30040117ff2877f3028bf36e7c8c02db0c777 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #ifndef PHP_HTTP_MESSAGE_PARSER_H
 #define PHP_HTTP_MESSAGE_PARSER_H
@@ -44,3 +55,13 @@ PHP_HTTP_API void php_http_message_parser_free(php_http_message_parser_t **parse
 PHP_HTTP_API php_http_message_parser_state_t php_http_message_parser_parse(php_http_message_parser_t *parser, php_http_buffer_t *buffer, unsigned flags, php_http_message_t **message);
 
 #endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 416e95d4f7727231c7ff28709c83d18dc24d4ad5..db588ea6be2697b50971db70f94284c00ad7273d 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id $ */
-
 #include "php_http.h"
 
 #include <ext/standard/php_lcg.h>
index a07f32fc83b835ccd6971088cc3837a9a8329a57..bcf8d37834042b6cd180ef06d49b57cf6e90a15b 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_api.h 298891 2010-05-03 08:26:38Z mike $ */
-
 #ifndef PHP_HTTP_MISC_H
 #define PHP_HTTP_MISC_H
 
index 7fb7c568396e9d8e62d7ebcf976a6437103f2456..cab0dd18dcd8c0a94c53727aebe4ec32a3e588e2 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_headers_api.h 300300 2010-06-09 07:29:35Z mike $ */
-
 #include "php_http.h"
 
 #include <ext/standard/php_string.h>
index d8814faba41794523d5158156bb5cf73efe6d96f..cfcfdb07bef00496ecef645648fe237f3f6e7921 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_headers_api.h 300300 2010-06-09 07:29:35Z mike $ */
-
 #ifndef PHP_HTTP_NEGOTIATE_H
 #define PHP_HTTP_NEGOTIATE_H
 
index a153f8667521b74b26f2e6bb99e51c624d141c65..97ebc628df2b7a378bc0d396abb94a14ce483866 100644 (file)
@@ -1,5 +1,19 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
+
+#if PHP_HTTP_HAVE_NEON
+
 #include "php_http_request.h"
 
 #include <ext/date/php_date.h>
@@ -894,3 +908,15 @@ PHP_MSHUTDOWN_FUNCTION(http_neon)
        ne_sock_exit();
        return SUCCESS;
 }
+
+#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index dd4ff9831548658c815231ba069b7d23680ae254..512dabebdac0b48c79517f5517e38b26f2c7aa15 100644 (file)
@@ -1,6 +1,20 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_NEON_H
 #define PHP_HTTP_NEON_H
 
+#if PHP_HTTP_HAVE_NEON
+
 php_http_request_ops_t *php_http_neon_get_request_ops(void);
 
 PHP_MINIT_FUNCTION(http_neon);
@@ -13,4 +27,15 @@ extern zend_function_entry php_http_neon_method_entry[];
 
 PHP_METHOD(HttpNEON, __construct);
 
+#endif /* PHP_HTTP_HAVE_NEON */
 #endif /* PHP_HTTP_NEON_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 13252e681d4b327512269d1ec8d0e0c5cc1dfd92..215ae8cbceca9b0713ce4af03d0674e2e18b1718 100644 (file)
@@ -6,13 +6,10 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_api.c 300299 2010-06-09 06:23:16Z mike $ */
-
-
 #include "php_http.h"
 
 STATUS php_http_new(zend_object_value *ov, zend_class_entry *ce, php_http_new_t create, zend_class_entry *parent_ce, void *intern_ptr, void **obj_ptr TSRMLS_DC)
index c4ede0e6e0130aea437789580cb6c07eee9770c7..0d0ca921154388f39b24f716f37ff63297d0755e 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_api.c 300299 2010-06-09 06:23:16Z mike $ */
-
 #ifndef PHP_HTTP_OBJECT_H
 #define PHP_HTTP_OBJECT_H
 
index e4d4a6fb88c7a78a6febf9988feca22c52b10423..4e34ee3f1d5b08dce441d1159853d56be955c41a 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_api.c 300299 2010-06-09 06:23:16Z mike $ */
-
 #include "php_http.h"
 
 PHP_HTTP_API void php_http_params_parse_default_func(void *arg, const char *key, int keylen, const char *val, int vallen TSRMLS_DC)
index c570017f8c46bcf984dff7b87e5ae6a3c6ba0563..3aa446f4f9c5f3cc04b369f5ab1a02edb5850ce7 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_api.h 298891 2010-05-03 08:26:38Z mike $ */
-
 #ifndef PHP_HTTP_PARAMS_H
 #define PHP_HTTP_PARAMS_H
 
index c174a043d19d8a3344980a9c7cb261b45eb5ca57..06a502458b8108895d3299fcc65cd1e60d14a9b6 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_persistent_handle_api.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 #ifndef PHP_HTTP_DEBUG_PHANDLES
index 07aa796d958b8d2b1e7497ef8b7a6492df5d59a5..19b84b751f74de259127789da022c7714dd53756 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_persistent_handle_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_PERSISTENT_HANDLE_H
 #define PHP_HTTP_PERSISTENT_HANDLE_H
 
index 35e725a4b63d5afce949a4656f3325878bf02d88..908ae9f071214b860c9aeca11b9338d3ed12c0bb 100644 (file)
@@ -1,7 +1,17 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
-
 php_http_property_proxy_t *php_http_property_proxy_init(php_http_property_proxy_t *proxy, zval *object, zval *member TSRMLS_DC)
 {
        if (!proxy) {
@@ -188,3 +198,13 @@ PHP_MINIT_FUNCTION(http_property_proxy)
        return SUCCESS;
 }
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index bc63aafd67a92dfcd10249fd6c6196958fe6ba22..043d3ed9afa247c3bec94d089cb1592a5d1e2bf3 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #ifndef PHP_HTTP_PROPERTY_PROXY_H
 #define PHP_HTTP_PROPERTY_PROXY_H
@@ -29,3 +40,13 @@ PHP_METHOD(HttpPropertyProxy, __construct);
 PHP_MINIT_FUNCTION(http_property_proxy);
 
 #endif /* PHP_HTTP_PROPERTY_PROXY_H_ */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index d77bbdaceccfc5bdf1ac586527b14af8c9a47797..364d2ee6bf637f7a24c1e1d2d3c8f232e4908a7c 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id$ */
-
 #include "php_http.h"
 
 #include <main/php_variables.h>
index ae1d072b305281544bede206feda67d36893c5a7..1c2dbebca3646fc02fd5e1f8efd1803aaef76888 100644 (file)
@@ -6,24 +6,18 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_querystring_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_QUERYSTRING_H
 #define PHP_HTTP_QUERYSTRING_H
 
-/* API */
-
 #ifdef PHP_HTTP_HAVE_ICONV
 PHP_HTTP_API STATUS php_http_querystring_xlate(zval *dst, zval *src, const char *ie, const char *oe TSRMLS_DC);
 #endif /* PHP_HTTP_HAVE_ICONV */
 PHP_HTTP_API STATUS php_http_querystring_update(zval *qarray, zval *params, zval *qstring TSRMLS_DC);
 
-/* PHP */
-
 typedef struct php_http_querystring_object {
        zend_object zo;
 } php_http_querystring_object_t;
index 7320856b5390f980cf405a2eb438fb33d5f51865..9d4819d24eb13c6b39377ae7d7cb1ee89a59a62b 100644 (file)
@@ -6,19 +6,16 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2010, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_request_api.c 298591 2010-04-26 11:46:55Z mike $ */
-
 #include "php_http.h"
 
 #include <ext/spl/spl_observer.h>
 #include <ext/spl/spl_iterators.h>
 #include <Zend/zend_interfaces.h>
 
-
 PHP_HTTP_API php_http_request_t *php_http_request_init(php_http_request_t *h, php_http_request_ops_t *ops, php_http_resource_factory_t *rf, void *init_arg TSRMLS_DC)
 {
        php_http_request_t *free_h = NULL;
index 96baa3634440389839f78de9f04f541ffe3c1cfa..5dc0750c42466bdb86f71d2cf0bfaaae89d1e468 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_request_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_REQUEST_H
 #define PHP_HTTP_REQUEST_H
 
index d6cbaa7e1c13568deb52a2fdb00e52adce24f65e..182ff1add60dbe72fd4292a907a1a25eede83a7b 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
@@ -391,3 +402,13 @@ PHP_RSHUTDOWN_FUNCTION(http_request_datashare)
        return SUCCESS;
 }
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 3b719623107847b9155631df1e654e7520e4d200..7a30b66dd94df2f706b2a91968c39332bdc494a2 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_REQUEST_DATASHARE_H
 #define PHP_HTTP_REQUEST_DATASHARE_H
 
@@ -86,3 +98,13 @@ PHP_METHOD(HttpRequestDataShare, detach);
 PHP_METHOD(HttpRequestDataShare, reset);
 
 #endif /* PHP_HTTP_REQUEST_DATASHARE_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index f0e6680e6b19207c6ba76b1b1009aec037432213..f13318e5b5f09fd33750ec08d7c4ecc92323c606 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
@@ -407,3 +418,13 @@ PHP_MSHUTDOWN_FUNCTION(http_request_factory)
        return SUCCESS;
 }
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 881025a846c74fd5ff6c0120987ab09121d3c898..04db43b1d971feff80ce1c5a7fc70c57d86cedac 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_REQUEST_FACTORY_H
 #define PHP_HTTP_REQUEST_FACTORY_H
 
@@ -30,3 +42,13 @@ extern PHP_MINIT_FUNCTION(http_request_factory);
 extern PHP_MSHUTDOWN_FUNCTION(http_request_factory);
 
 #endif /* PHP_HTTP_REQUEST_FACTORY_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 10d9440fe81ed63d2c6ee64adee36960ed0d4597..ecfe8cd420d2f9f85ab8defc14e318260c748285 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_request_info.c 293136 2010-01-05 08:48:52Z mike $ */
-
 #include "php_http.h"
 
 PHP_HTTP_API void php_http_request_info(php_http_request_t *request, HashTable *info)
index 43157c67cf76c3d441f4d5711c2618db037c9ffd..b4b3567e144844e0a1a83a211b9014483771a38e 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_request_method_api.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 #include <Zend/zend_interfaces.h>
index bb2efc7992c6737e4bf0ff609b6053e7fe194604..dcfd9b894423a4826d61efa7f0afb4f016d5659a 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_request_method_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_REQUEST_METHOD_H
 #define PHP_HTTP_REQUEST_METHOD_H
 
index e06bcb0e16df3387da7ff4dec81a74efdcd9a04d..9ee6f7682056802700aef95cb43578f305cc0193 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
@@ -564,3 +575,13 @@ PHP_MINIT_FUNCTION(http_request_pool)
        return SUCCESS;
 }
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 221292d936263f3e652dd71c4a1ca44e3ac9d64b..d2b6eb47310ed7edc4ae7c58d5c6f3b035831968 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #ifndef PHP_HTTP_REQUESTPOOL_H
 #define PHP_HTTP_REQUESTPOOL_H
@@ -104,3 +115,13 @@ PHP_METHOD(HttpRequestPool, enableEvents);
 PHP_MINIT_FUNCTION(http_request_pool);
 
 #endif /* PHP_HTTP_REQUESTPOOL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index c3ff6f5ff2eeaa5d85ad4b721c335b550504e57b..390d882c155425753396a0b912d44b830aa899f9 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id:$ */
-
 #include "php_http.h"
 #include "php_http_resource_factory.h"
 
index 1a0a8ecac2cd96845828df7ba368b2d315adc3bd..df49fe7177e486bb66aee7b6bd35c02e77690cc6 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id$ */
-
 #ifndef PHP_HTTP_RESOURCE_FACTORY_H
 #define PHP_HTTP_RESOURCE_FACTORY_H
 
index 53ccac942f145e82c8a4c943574d0039d6a75cff..ee46786e84f705511308250039126a5e9857854b 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #include "php_http.h"
 
@@ -85,3 +96,13 @@ PHP_HTTP_API const char *php_http_strlist_find(const char list[], unsigned facto
 
     return p;
 }
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 4bddbb250b2843eec97cd3694c5d71cb97efafd7..35bdd9f5272e9fa3a86d8cce5816538dbfc2ca1d 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #ifndef PHP_HTTP_STRLIST_H
 #define PHP_HTTP_STRLIST_H
 
@@ -25,3 +37,13 @@ PHP_HTTP_API void php_http_strlist_iterator_dtor(php_http_strlist_iterator_t *it
 PHP_HTTP_API void php_http_strlist_iterator_free(php_http_strlist_iterator_t **iter);
 
 #endif /* PHP_HTTP_STRLIST_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 58250234751bb2c15bd481313dc5df8856c0ba0d..8170bc3e728894d2129f99c227a9d8d729e81cd0 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: http_url_api.c 292841 2009-12-31 08:48:57Z mike $ */
-
 #include "php_http.h"
 
 #include <main/SAPI.h>
index 23f529dfa3ddc91caceb69d52839aee46d49bdfd..02535d84e3c2088cefbd2f097198b3278f7f948c 100644 (file)
@@ -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 <mike@php.net>            |
+    | Copyright (c) 2004-2011, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
-/* $Id: php_http_url_api.h 292841 2009-12-31 08:48:57Z mike $ */
-
 #ifndef PHP_HTTP_URL_H
 #define PHP_HTTP_URL_H
 
index 8c1637c122002709b6c707a477062bc789b1aef4..4561b8fbd13d851fa53e3be68f150c7da942b780 100644 (file)
@@ -1,3 +1,15 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
+
 #include "php_http.h"
 
 PHP_HTTP_API php_http_version_t *php_http_version_init(php_http_version_t *v, unsigned major, unsigned minor TSRMLS_DC)
@@ -57,3 +69,13 @@ PHP_HTTP_API void php_http_version_free(php_http_version_t **v)
                *v = NULL;
        }
 }
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+
index 6f02ad747d55f04efbefb7fa386189ce2dcb160c..875614a4f63f0cae55ea8c9814742807aeabbcbf 100644 (file)
@@ -1,3 +1,14 @@
+/*
+    +--------------------------------------------------------------------+
+    | 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-2011, Michael Wallner <mike@php.net>            |
+    +--------------------------------------------------------------------+
+*/
 
 #ifndef PHP_HTTP_VERSION_H
 #define        PHP_HTTP_VERSION_H
@@ -16,3 +27,13 @@ PHP_HTTP_API void php_http_version_free(php_http_version_t **v);
 
 #endif /* PHP_HTTP_VERSION_H */
 
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
+