From 20d7454f10d7b03e6ad7302627e1ee97c5152e6b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 8 Mar 2006 20:41:50 +0000 Subject: [PATCH] - version bump - prevent possible crash if sapi_module.treat_data is not set --- http_querystring_object.c | 4 +++- package2.xml | 15 +++------------ php_http.h | 2 +- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/http_querystring_object.c b/http_querystring_object.c index d7d3000..1238781 100644 --- a/http_querystring_object.c +++ b/http_querystring_object.c @@ -338,7 +338,9 @@ PHP_METHOD(HttpQueryString, __construct) zval *params = NULL, *qarray = NULL, *qstring = NULL, **_GET, **_SERVER, **QUERY_STRING; SET_EH_THROW_HTTP(); - if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|bz", &global, ¶ms)) { + if (!sapi_module.treat_data) { + http_error(HE_ERROR, HTTP_E_QUERYSTRING, "The SAPI does not have a treat_data function registered"); + } else if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|bz", &global, ¶ms)) { if (global) { if ( (SUCCESS == zend_hash_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER"), (void **) &_SERVER)) && (Z_TYPE_PP(_SERVER) == IS_ARRAY) && diff --git a/package2.xml b/package2.xml index 5edcb17..499d790 100644 --- a/package2.xml +++ b/package2.xml @@ -37,8 +37,8 @@ HttpResponse 2006-00-00 - 0.25.0 - 0.25.0 + 1.0.0RC + 1.0.0RC beta @@ -46,16 +46,7 @@ HttpResponse BSD, revised diff --git a/php_http.h b/php_http.h index 9516a7c..2782a73 100644 --- a/php_http.h +++ b/php_http.h @@ -15,7 +15,7 @@ #ifndef PHP_EXT_HTTP_H #define PHP_EXT_HTTP_H -#define PHP_EXT_HTTP_VERSION "0.25.0" +#define PHP_EXT_HTTP_VERSION "1.0.0RC1" #ifdef HAVE_CONFIG_H # include "config.h" -- 2.30.2