From beb86e70fe8d8dd1b8d3f5d88745235442af8451 Mon Sep 17 00:00:00 2001 From: Peter Petermann Date: Sun, 17 Mar 2013 17:33:02 +0100 Subject: [PATCH] added fix be marcelog, see #59970 --- php_stomp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php_stomp.c b/php_stomp.c index c6c606c..d31d420 100755 --- a/php_stomp.c +++ b/php_stomp.c @@ -62,7 +62,9 @@ SEPARATE_ZVAL(value); \ convert_to_string(*value); \ } \ - zend_hash_add(h, string_key, strlen(string_key)+1, Z_STRVAL_PP(value), Z_STRLEN_PP(value)+1, NULL); \ + if (strcmp(string_key, "content-length") != 0) { \ + zend_hash_add(h, string_key, strlen(string_key)+1, Z_STRVAL_PP(value), Z_STRLEN_PP(value)+1, NULL); \ + }\ efree(string_key); \ } \ }