projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
2dd36fa
)
ws
author
Michael Wallner
<mike@php.net>
Mon, 30 Jan 2006 17:38:37 +0000
(17:38 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 30 Jan 2006 17:38:37 +0000
(17:38 +0000)
http_querystring_object.c
patch
|
blob
|
history
diff --git
a/http_querystring_object.c
b/http_querystring_object.c
index a3177a376b0fba5da8ed25b8bc06cbccdcea63f4..f9a0590860076d3943aac2111cbdd6fe376b9f36 100644
(file)
--- 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]))
{
} 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); \
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);
}
HTTP_QUERYSTRING_GETTER(getBool, IS_BOOL);
HTTP_QUERYSTRING_GETTER(getInt, IS_LONG);