From: Michael Wallner Date: Mon, 30 Jan 2006 17:38:37 +0000 (+0000) Subject: ws X-Git-Tag: RELEASE_0_22_0~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=026f90bdb60e9f146a1ef97062cb4286e814e314;p=m6w6%2Fext-http ws --- diff --git a/http_querystring_object.c b/http_querystring_object.c index a3177a3..f9a0590 100644 --- a/http_querystring_object.c +++ b/http_querystring_object.c @@ -314,24 +314,12 @@ PHP_METHOD(HttpQueryString, get) } else if(Z_TYPE_P(ztype) == IS_STRING) { switch (tolower(Z_STRVAL_P(ztype)[0])) { - case 'b': - type = HTTP_QUERYSTRING_TYPE_BOOL; - break; - case 'i': - type = HTTP_QUERYSTRING_TYPE_INT; - break; - case 'f': - type = HTTP_QUERYSTRING_TYPE_FLOAT; - break; - case 's': - type = HTTP_QUERYSTRING_TYPE_STRING; - break; - case 'a': - type = HTTP_QUERYSTRING_TYPE_ARRAY; - break; - case 'o': - type = HTTP_QUERYSTRING_TYPE_OBJECT; - break; + case 'b': type = HTTP_QUERYSTRING_TYPE_BOOL; break; + case 'i': type = HTTP_QUERYSTRING_TYPE_INT; break; + case 'f': type = HTTP_QUERYSTRING_TYPE_FLOAT; break; + case 's': type = HTTP_QUERYSTRING_TYPE_STRING; break; + case 'a': type = HTTP_QUERYSTRING_TYPE_ARRAY; break; + case 'o': type = HTTP_QUERYSTRING_TYPE_OBJECT; break; } } } @@ -489,7 +477,7 @@ PHP_METHOD(HttpQueryString, method) \ zend_bool del = 0; \ if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zb", &name, &name_len, &defval, &del)) { \ http_querystring_get(getThis(), TYPE, name, name_len, defval, del, return_value); \ -} \ + } \ } HTTP_QUERYSTRING_GETTER(getBool, IS_BOOL); HTTP_QUERYSTRING_GETTER(getInt, IS_LONG);