com php-src: Removed unused functions: Zend/zend_operators. c Zend/zend_operators.h ext/soap/php_encoding.c
| From: | Dmitry Stogov | Date: | Tue, 24 Mar 2015 20:40:20 +0000 |
| Subject: | com php-src: Removed unused functions: Zend/zend_operators. c Zend/zend_operators.h ext/soap/php_encoding.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85843@lists.php.net to get a copy of this message | ||
Commit: 0ce7b4c8c6e9b5fc6f5bba9b0ed0b9f4f4d5634c
Author: Dmitry Stogov <dmitry@zend.com> Tue, 24 Mar 2015 23:40:20 +0300
Parents: e37e9d29861f7934352781aad59acf3e509f9644
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ce7b4c8c6e9b5fc6f5bba9b0ed0b9f4f4d5634c
Log:
Removed unused functions
Changed paths:
M Zend/zend_operators.c
M Zend/zend_operators.h
M ext/soap/php_encoding.c
Diff:
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 8a58f37..3475174 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -1497,33 +1497,6 @@ ZEND_API int ZEND_FASTCALL shift_right_function(zval *result, zval *op1, zval
*o
}
/* }}} */
-/* must support result==op1 */
-ZEND_API int ZEND_FASTCALL add_char_to_string(zval *result, const zval *op1, const zval *op2) /*
{{{ */
-{
- size_t length = Z_STRLEN_P(op1) + 1;
- zend_string *buf = zend_string_extend(Z_STR_P(op1), length, 0);
-
- buf->val[length - 1] = (char) Z_LVAL_P(op2);
- buf->val[length] = 0;
- ZVAL_NEW_STR(result, buf);
- return SUCCESS;
-}
-/* }}} */
-
-/* must support result==op1 */
-ZEND_API int ZEND_FASTCALL add_string_to_string(zval *result, const zval *op1, const zval *op2) /*
{{{ */
-{
- size_t op1_len = Z_STRLEN_P(op1);
- size_t length = op1_len + Z_STRLEN_P(op2);
- zend_string *buf = zend_string_extend(Z_STR_P(op1), length, 0);
-
- memcpy(buf->val + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2));
- buf->val[length] = 0;
- ZVAL_NEW_STR(result, buf);
- return SUCCESS;
-}
-/* }}} */
-
ZEND_API int ZEND_FASTCALL concat_function(zval *result, zval *op1, zval *op2) /* {{{ */
{
zval op1_copy, op2_copy;
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index e2e9abf..962b453 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -267,8 +267,6 @@ static zend_always_inline zend_string *_zval_get_string(zval *op) {
#define zval_get_double(op) _zval_get_double((op))
#define zval_get_string(op) _zval_get_string((op))
-ZEND_API int ZEND_FASTCALL add_char_to_string(zval *result, const zval *op1, const zval *op2);
-ZEND_API int ZEND_FASTCALL add_string_to_string(zval *result, const zval *op1, const zval *op2);
#define convert_to_cstring(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_cstring((op)
ZEND_FILE_LINE_CC); }
#define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)
ZEND_FILE_LINE_CC); }
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index 966d6d0..993a2fa 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -1272,7 +1272,7 @@ static void model_to_zval_any(zval *ret, xmlNodePtr node)
if (Z_TYPE(val2) != IS_STRING || *Z_STRVAL(val) != '<') {
break;
}
- add_string_to_string(&val, &val, &val2);
+ concat_function(&val, &val, &val2);
zval_ptr_dtor(&val2);
node = node->next;
}