From a4d37ccceca1eecd63e8b69c74f09ce679f39498 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 24 Jan 2012 16:33:49 +0000 Subject: [PATCH] return the actual zval instead of a string cast as header if join==0 --- php_http_message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.30.2