derick          Sun Nov 10 16:26:14 2002 EDT

  Modified files:              
    /php4/ext/curl      config.m4 curl.c 
  Log:
  - Make it rely on cURL version 7.9.8 again, so that we can start with the
    Release Process.
  
  
Index: php4/ext/curl/config.m4
diff -u php4/ext/curl/config.m4:1.19 php4/ext/curl/config.m4:1.20
--- php4/ext/curl/config.m4:1.19        Sat Nov  9 08:08:49 2002
+++ php4/ext/curl/config.m4     Sun Nov 10 16:26:13 2002
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config.m4,v 1.19 2002/11/09 13:08:49 sterling Exp $
+dnl $Id: config.m4,v 1.20 2002/11/10 21:26:13 derick Exp $
 dnl
 
 PHP_ARG_WITH(curl, for CURL support,
@@ -29,7 +29,7 @@
   fi
 
   CURL_CONFIG="curl-config"
-  AC_MSG_CHECKING(for cURL 7.10.2 or greater)
+  AC_MSG_CHECKING(for cURL 7.9.8 or greater)
 
   if ${CURL_DIR}/bin/curl-config --libs print > /dev/null 2>&1; then
     CURL_CONFIG=${CURL_DIR}/bin/curl-config
@@ -41,11 +41,11 @@
 
   curl_version_full=`$CURL_CONFIG --version`
   curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | awk 'BEGIN { FS = 
"."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-  if test "$curl_version" -ge 7010002; then
+  if test "$curl_version" -ge 7009008; then
     AC_MSG_RESULT($curl_version_full)
     CURL_LIBS=`$CURL_CONFIG --libs`
   else
-    AC_MSG_ERROR(cURL version 7.10.2 or later is required to compile php with cURL 
support)
+    AC_MSG_ERROR(cURL version 7.9.8 or later is required to compile php with cURL 
+support)
   fi
 
   PHP_ADD_INCLUDE($CURL_DIR/include)
Index: php4/ext/curl/curl.c
diff -u php4/ext/curl/curl.c:1.123 php4/ext/curl/curl.c:1.124
--- php4/ext/curl/curl.c:1.123  Sat Nov  9 08:52:00 2002
+++ php4/ext/curl/curl.c        Sun Nov 10 16:26:14 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: curl.c,v 1.123 2002/11/09 13:52:00 sterling Exp $ */
+/* $Id: curl.c,v 1.124 2002/11/10 21:26:14 derick Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -183,9 +183,6 @@
        REGISTER_CURL_CONSTANT(CURLOPT_COOKIEJAR);
        REGISTER_CURL_CONSTANT(CURLOPT_SSL_CIPHER_LIST);
        REGISTER_CURL_CONSTANT(CURLOPT_BINARYTRANSFER);
-       REGISTER_CURL_CONSTANT(CURLOPT_NOSIGNAL);
-       REGISTER_CURL_CONSTANT(CURLOPT_PROXYTYPE);
-       REGISTER_CURL_CONSTANT(CURLOPT_BUFFERSIZE);
        REGISTER_CURL_CONSTANT(CURLOPT_HTTPGET);
        REGISTER_CURL_CONSTANT(CURLOPT_HTTP_VERSION);
        REGISTER_CURL_CONSTANT(CURLOPT_SSLKEY);
@@ -224,15 +221,6 @@
        REGISTER_CURL_CONSTANT(CURLINFO_REDIRECT_TIME);
        REGISTER_CURL_CONSTANT(CURLINFO_REDIRECT_COUNT);
 
-       /* cURL protocol constants (curl_version) */
-       REGISTER_CURL_CONSTANT(CURL_VERSION_IPV6);
-       REGISTER_CURL_CONSTANT(CURL_VERSION_KERBEROS4);
-       REGISTER_CURL_CONSTANT(CURL_VERSION_SSL);
-       REGISTER_CURL_CONSTANT(CURL_VERSION_LIBZ);
-       
-       /* version constants */
-       REGISTER_CURL_CONSTANT(CURLVERSION_NOW);
-
        /* Error Constants */
        REGISTER_CURL_CONSTANT(CURLE_OK);
        REGISTER_CURL_CONSTANT(CURLE_UNSUPPORTED_PROTOCOL);
@@ -287,9 +275,6 @@
        REGISTER_CURL_CONSTANT(CURLE_OBSOLETE);
        REGISTER_CURL_CONSTANT(CURLE_SSL_PEER_CERTIFICATE);
 
-       REGISTER_CURL_CONSTANT(CURLPROXY_HTTP);
-       REGISTER_CURL_CONSTANT(CURLPROXY_SOCKS5);
-
        REGISTER_CURL_CONSTANT(CURL_NETRC_OPTIONAL);
        REGISTER_CURL_CONSTANT(CURL_NETRC_IGNORED);
        REGISTER_CURL_CONSTANT(CURL_NETRC_REQUIRED);
@@ -584,45 +569,15 @@
 /* }}} */
 
 
-/* {{{ proto array curl_version([int version])
+/* {{{ proto array curl_version(void)
    Return cURL version information. */
 PHP_FUNCTION(curl_version)
 {
-       curl_version_info_data *d;
-       long                    uversion = CURLVERSION_NOW;
-
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &uversion) == 
FAILURE) {
-               return;
-       }
-
-       d = curl_version_info(uversion);
-       if (d == NULL) {
-               RETURN_FALSE;
+       if (ZEND_NUM_ARGS() != 0) {
+               WRONG_PARAM_COUNT;
        }
 
-       array_init(return_value);
-
-       CAAL("version_number", d->version_num);
-       CAAL("age", d->age);
-       CAAL("features", d->features);
-       CAAL("ssl_version_number", d->ssl_version_num);
-       CAAS("version", d->version);
-       CAAS("host", d->host);
-       CAAS("ssl_version", d->ssl_version);
-       CAAS("libz_version", d->libz_version);
-       /* Add an array of protocols */
-       {
-               char **p = (char **) d->protocols;
-               zval  *protocol_list = NULL;
-
-               MAKE_STD_ZVAL(protocol_list);
-               array_init(protocol_list);
-
-               while (*p != NULL) {
-                       add_next_index_string(protocol_list,  *p++, 1);
-               }
-               CAAZ("protocols", protocol_list);
-       }
+       RETURN_STRING(curl_version(), 1);
 }
 /* }}} */
 
@@ -752,9 +707,6 @@
                case CURLOPT_SSL_VERIFYHOST:
                case CURLOPT_SSL_VERIFYPEER:
                case CURLOPT_DNS_USE_GLOBAL_CACHE:
-               case CURLOPT_NOSIGNAL:
-               case CURLOPT_PROXYTYPE:
-               case CURLOPT_BUFFERSIZE:
                case CURLOPT_HTTPGET:
                case CURLOPT_HTTP_VERSION:
                case CURLOPT_CRLF:



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to