Skip to content

Commit f1babbb

Browse files
committed
Use known "scheme" zend_string instead of C string
1 parent a51f564 commit f1babbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/iconv/iconv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1978,7 +1978,7 @@ PHP_FUNCTION(iconv_mime_encode)
19781978
if (pref != NULL) {
19791979
zval *pzval;
19801980

1981-
if ((pzval = zend_hash_str_find_deref(Z_ARRVAL_P(pref), "scheme", sizeof("scheme") - 1)) != NULL) {
1981+
if ((pzval = zend_hash_find_deref(Z_ARRVAL_P(pref), ZSTR_KNOWN(ZEND_STR_SCHEME)) != NULL) {
19821982
if (Z_TYPE_P(pzval) == IS_STRING && Z_STRLEN_P(pzval) > 0) {
19831983
switch (Z_STRVAL_P(pzval)[0]) {
19841984
case 'B': case 'b':

0 commit comments

Comments
 (0)