Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03ff708

Browse files
committed
more const
1 parent a6de687 commit 03ff708

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎ext/standard/php_string.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ PHPAPI zend_string *php_str_to_str(const char *haystack, size_t length, const ch
5252
PHPAPI zend_string *php_trim(zend_string *str, const char *what, size_t what_len, int mode);
5353
PHPAPI size_t php_strip_tags(char *rbuf, size_t len, const char *allow, size_t allow_len);
5454
PHPAPI size_t php_strip_tags_ex(char *rbuf, size_t len, const char *allow, size_t allow_len, bool allow_tag_spaces);
55-
PHPAPI void php_implode(const zend_string *delim, HashTable *arr, zval *return_value);
56-
PHPAPI void php_explode(const zend_string *delim, zend_string *str, zval *return_value, zend_long limit);
55+
PHPAPI void php_implode(const zend_string *delim, constHashTable *arr, zval *return_value);
56+
PHPAPI void php_explode(const zend_string *delim, constzend_string *str, zval *return_value, zend_long limit);
5757

5858
PHPAPI size_t php_strspn(const char *s1, const char *s2, const char *s1_end, const char *s2_end);
5959
PHPAPI size_t php_strcspn(const char *s1, const char *s2, const char *s1_end, const char *s2_end);

‎ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ PHP_FUNCTION(explode)
937937
/* }}} */
938938

939939
/* {{{ php_implode */
940-
PHPAPI void php_implode(const zend_string *glue, HashTable *pieces, zval *return_value)
940+
PHPAPI void php_implode(const zend_string *glue, constHashTable *pieces, zval *return_value)
941941
{
942942
zval *tmp;
943943
uint32_t numelems;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /