- Bring the majority of PECL extensions into line with macro/x.x.x versioning.
authorSteph Fox <sfox@php.net>
Mon, 31 Mar 2008 09:42:47 +0000 (09:42 +0000)
committerSteph Fox <sfox@php.net>
Mon, 31 Mar 2008 09:42:47 +0000 (09:42 +0000)
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.

http.c
http_request_api.c
php_http.h

diff --git a/http.c b/http.c
index 923748d1cba7ef1571ba2f0600173ead4e1296e9..74d92b227d480b730d5102cc9e6e6293904668eb 100644 (file)
--- a/http.c
+++ b/http.c
@@ -164,7 +164,7 @@ zend_module_entry http_module_entry = {
        PHP_RINIT(http),
        PHP_RSHUTDOWN(http),
        PHP_MINFO(http),
-       PHP_EXT_HTTP_VERSION,
+       PHP_HTTP_VERSION,
        STANDARD_MODULE_PROPERTIES
 };
 /* }}} */
@@ -411,8 +411,8 @@ PHP_MINFO_FUNCTION(http)
 {
        php_info_print_table_start();
        {
-               php_info_print_table_row(2, "HTTP Support", "enabled");
-               php_info_print_table_row(2, "Extension Version", PHP_EXT_HTTP_VERSION);
+               php_info_print_table_header(2, "HTTP Support", "enabled");
+               php_info_print_table_row(2, "Extension Version", PHP_HTTP_VERSION);
                php_info_print_table_row(2, "Registered Classes",
 #ifndef ZEND_ENGINE_2
                        "none"
index e20eb11524f3965cccd0af9a71370f64a1c23ef0..bf21eba4ef4a3ec10bb09b9f4137ce8f5047ca4f 100644 (file)
@@ -476,7 +476,7 @@ PHP_HTTP_API void _http_request_defaults(http_request *request)
                HTTP_CURL_OPT(CURLOPT_FOLLOWLOCATION, 0L);
                HTTP_CURL_OPT(CURLOPT_UNRESTRICTED_AUTH, 0L);
                HTTP_CURL_OPT(CURLOPT_REFERER, NULL);
-               HTTP_CURL_OPT(CURLOPT_USERAGENT, "PECL::HTTP/" PHP_EXT_HTTP_VERSION " (PHP/" PHP_VERSION ")");
+               HTTP_CURL_OPT(CURLOPT_USERAGENT, "PECL::HTTP/" PHP_HTTP_VERSION " (PHP/" PHP_VERSION ")");
                HTTP_CURL_OPT(CURLOPT_HTTPHEADER, NULL);
                HTTP_CURL_OPT(CURLOPT_COOKIE, NULL);
 #if HTTP_CURL_VERSION(7,14,1)
index b561d1d1c03b1165f9e426a7266b442beea0bcb7..69ff05a378f9dd2dd1a83ed75663af7c58984fd7 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef PHP_EXT_HTTP_H
 #define PHP_EXT_HTTP_H
 
-#define PHP_EXT_HTTP_VERSION "1.6.1"
+#define PHP_HTTP_VERSION "1.6.1-dev"
 
 #ifdef HAVE_CONFIG_H
 #      include "config.h"