com php-src: Use zend_string_tolower in zif_strtolowe r: ext/standard/string.c
| From: | Xinchen Hui | Date: | Wed, 24 Dec 2014 13:16:17 +0000 |
| Subject: | com php-src: Use zend_string_tolower in zif_strtolowe r: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83854@lists.php.net to get a copy of this message | ||
Commit: 06abeab50c00fce1e8f06a8a137d4760ac13acae
Author: Xinchen Hui <laruence@php.net> Wed, 24 Dec 2014 08:16:17 -0500
Parents: 231db90b28a6c469e412c59cc4218b35ce90ed84
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=06abeab50c00fce1e8f06a8a137d4760ac13acae
Log:
Use zend_string_tolower in zif_strtolower
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index e275e64..344ac8a 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -1419,9 +1419,7 @@ PHP_FUNCTION(strtolower)
ZEND_PARSE_PARAMETERS_END();
#endif
- result = zend_string_init(str->val, str->len, 0);
- php_strtolower(result->val, result->len);
- RETURN_NEW_STR(result);
+ RETURN_STR(zend_string_tolower(str));
}
/* }}} */