X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_headers.c;h=226c763472253b7ad5cf77daf4d9919a17bc8a34;hp=3bc19de70248208c6022d7d439b5d52471ff3183;hb=61c5a47e7530b142df6b67332e60a339998c2492;hpb=2e9ac0202f2c5f1cb94e0afd4b66c1c35c316284 diff --git a/php_http_headers.c b/php_http_headers.c index 3bc19de..226c763 100644 --- a/php_http_headers.c +++ b/php_http_headers.c @@ -116,7 +116,7 @@ PHP_METHOD(HttpHeader, unserialize) zend_hash_internal_pointer_reset(&ht); switch (zend_hash_get_current_key_ex(&ht, &str, &len, &idx, 0, NULL)) { case HASH_KEY_IS_STRING: - zend_update_property_stringl(php_http_header_class_entry, getThis(), ZEND_STRL("name"), str, len TSRMLS_CC); + zend_update_property_stringl(php_http_header_class_entry, getThis(), ZEND_STRL("name"), str, len - 1 TSRMLS_CC); break; case HASH_KEY_IS_LONG: zend_update_property_long(php_http_header_class_entry, getThis(), ZEND_STRL("name"), idx TSRMLS_CC);