We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a51f564 commit f1babbbCopy full SHA for f1babbb
ext/iconv/iconv.c
@@ -1978,7 +1978,7 @@ PHP_FUNCTION(iconv_mime_encode)
1978
if (pref != NULL) {
1979
zval *pzval;
1980
1981
- if ((pzval = zend_hash_str_find_deref(Z_ARRVAL_P(pref), "scheme", sizeof("scheme") - 1)) != NULL) {
+ if ((pzval = zend_hash_find_deref(Z_ARRVAL_P(pref), ZSTR_KNOWN(ZEND_STR_SCHEME)) != NULL) {
1982
if (Z_TYPE_P(pzval) == IS_STRING && Z_STRLEN_P(pzval) > 0) {
1983
switch (Z_STRVAL_P(pzval)[0]) {
1984
case 'B': case 'b':
0 commit comments