From: Michael Wallner Date: Tue, 24 Jan 2012 16:33:49 +0000 (+0000) Subject: return the actual zval instead of a string cast as header if join==0 X-Git-Tag: DEV_2-before-client~51 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a4d37ccceca1eecd63e8b69c74f09ce679f39498;p=m6w6%2Fext-http return the actual zval instead of a string cast as header if join==0 --- diff --git a/php_http_message.c b/php_http_message.c index 6436a1c..b3adb46 100644 --- a/php_http_message.c +++ b/php_http_message.c @@ -169,7 +169,8 @@ PHP_HTTP_API zval *php_http_message_header(php_http_message_t *msg, char *key_st ZVAL_STRINGL(header_str, PHP_HTTP_BUFFER_VAL(&str), PHP_HTTP_BUFFER_LEN(&str), 0); ret = header_str; } else { - ret = php_http_ztyp(IS_STRING, *header); + Z_ADDREF_PP(header); + ret = *header; } }