com php-src: Unused var: ext/simplexml/simplexml.c
| From: | Xinchen Hui | Date: | Tue, 05 May 2015 09:02:54 +0000 |
| Subject: | com php-src: Unused var: ext/simplexml/simplexml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86594@lists.php.net to get a copy of this message | ||
Commit: b6e893c143cf3e7ca1e1b3b3b31b4f5b20e4ebd3
Author: Xinchen Hui <laruence@php.net> Tue, 5 May 2015 17:02:54 +0800
Parents: 859aa06205ca6f39fbc776d6679b8744514a565a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b6e893c143cf3e7ca1e1b3b3b31b4f5b20e4ebd3
Log:
Unused var
Changed paths:
M ext/simplexml/simplexml.c
Diff:
diff --git a/ext/simplexml/simplexml..c b/ext/simplexml/simplexml.c
index 505f6e8..a0b0c13 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1830,7 +1830,7 @@ static int sxe_object_cast_ex(zval *readobj, zval *writeobj, int type)
}
/* }}} */
-/* Variant of sxe_object_cast_ex that handles overwritten __toString() method */
+/* {{{ Variant of sxe_object_cast_ex that handles overwritten __toString() method */
static int sxe_object_cast(zval *readobj, zval *writeobj, int type)
{
if (type == IS_STRING
@@ -1841,6 +1841,7 @@ static int sxe_object_cast(zval *readobj, zval *writeobj, int type)
return sxe_object_cast_ex(readobj, writeobj, type);
}
+/* }}} */
/* {{{ proto object SimpleXMLElement::__toString() U
Returns the string content */
@@ -2055,15 +2056,12 @@ static zend_function* php_sxe_find_fptr_count(zend_class_entry *ce)
{
zend_function *fptr_count = NULL;
zend_class_entry *parent = ce;
- int inherited = 0;
-
while (parent) {
if (parent == sxe_class_entry) {
break;
}
parent = parent->parent;
- inherited = 1;
}
fptr_count = zend_hash_str_find_ptr(&ce->function_table, "count",
sizeof("count") - 1);