diff options
author | Anatol Belski <ab@php.net> | 2014-08-27 15:31:48 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-08-27 20:49:31 +0200 |
commit | 3234480827b27ff5d3469a732167afd289632a96 (patch) | |
tree | 485ed0c4f5d35107a65ab193f3bc7c27806fbfca /ext/dom/element.c | |
parent | ee552b628c2d9f9455ac85d7791b4b4e8e4ddeb2 (diff) | |
download | php-git-3234480827b27ff5d3469a732167afd289632a96.tar.gz |
first show to make 's' work with size_t
Diffstat (limited to 'ext/dom/element.c')
-rw-r--r-- | ext/dom/element.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/dom/element.c b/ext/dom/element.c index 5ecf031c4c..47ba6a31e0 100644 --- a/ext/dom/element.c +++ b/ext/dom/element.c @@ -160,7 +160,8 @@ PHP_METHOD(domelement, __construct) char *name, *value = NULL, *uri = NULL; char *localname = NULL, *prefix = NULL; int errorcode = 0, uri_len = 0; - int name_len, value_len = 0, name_valid; + size_t name_len, value_len = 0; + int name_valid; xmlNsPtr nsptr = NULL; zend_error_handling error_handling; @@ -370,7 +371,8 @@ PHP_FUNCTION(dom_element_set_attribute) zval *id; xmlNode *nodep; xmlNodePtr attr = NULL; - int ret, name_len, value_len, name_valid; + int ret, name_valid; + size_t name_len, value_len; dom_object *intern; char *name, *value; @@ -660,7 +662,7 @@ PHP_FUNCTION(dom_element_get_attribute_ns) xmlNodePtr elemp; xmlNsPtr nsptr; dom_object *intern; - int uri_len = 0, name_len = 0; + size_t uri_len = 0, name_len = 0; char *uri, *name; xmlChar *strattr; @@ -740,7 +742,7 @@ PHP_FUNCTION(dom_element_set_attribute_ns) xmlNodePtr elemp, nodep = NULL; xmlNsPtr nsptr; xmlAttr *attr; - int uri_len = 0, name_len = 0, value_len = 0; + size_t uri_len = 0, name_len = 0, value_len = 0; char *uri, *name, *value; char *localname = NULL, *prefix = NULL; dom_object *intern; |