Skip to content

Commit 6242374

Browse files
committed
Use ZSTR_CHAR
1 parent bfdec2f commit 6242374

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

yar_response.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,25 @@ void php_yar_response_map_retval(yar_response_t *response, zval *ret) /* {{{ */
8787
zval *pzval;
8888
HashTable *ht = Z_ARRVAL_P(ret);
8989

90-
if ((pzval = zend_hash_str_find(ht, ZEND_STRL("i"))) == NULL) {
90+
if ((pzval = zend_hash_find(ht, ZSTR_CHAR('i'))) == NULL) {
9191
return;
9292
}
9393
convert_to_long(pzval);
9494
response->id = Z_LVAL_P(pzval);
9595

96-
if ((pzval = zend_hash_str_find(ht, ZEND_STRL("s"))) == NULL) {
96+
if ((pzval = zend_hash_find(ht, ZSTR_CHAR('s'))) == NULL) {
9797
return;
9898
}
9999
convert_to_long(pzval);
100100
if ((response->status = Z_LVAL_P(pzval)) == YAR_ERR_OKEY) {
101-
if ((pzval = zend_hash_str_find(ht, ZEND_STRL("o"))) != NULL) {
101+
if ((pzval = zend_hash_find(ht, ZSTR_CHAR('o'))) != NULL) {
102102
response->out = Z_STR_P(pzval);
103103
ZVAL_NULL(pzval);
104104
}
105-
if ((pzval = zend_hash_str_find(ht, ZEND_STRL("r"))) != NULL) {
105+
if ((pzval = zend_hash_find(ht, ZSTR_CHAR('r'))) != NULL) {
106106
ZVAL_COPY(&response->retval, pzval);
107107
}
108-
} else if ((pzval = zend_hash_str_find(ht, ZEND_STRL("e"))) != NULL) {
108+
} else if ((pzval = zend_hash_find(ht, ZSTR_CHAR('e'))) != NULL) {
109109
ZVAL_COPY(&response->err, pzval);
110110
}
111111
}

0 commit comments

Comments
 (0)