projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
pre-fix request body
[m6w6/ext-http]
/
php_http_header.c
diff --git
a/php_http_header.c
b/php_http_header.c
index 0ae381ea1469058fbd4e812effc7bcb3ccd4cb12..6d47d99f2a78d399ca5d5fc24268aac6f97fcb66 100644
(file)
--- a/
php_http_header.c
+++ b/
php_http_header.c
@@
-72,12
+72,12
@@
void php_http_header_to_callback(HashTable *headers, zend_bool crlf, php_http_pa
}
}
ZEND_HASH_FOREACH_END();
}
}
ZEND_HASH_FOREACH_END();
- }
- } else {
- zend_string *zs = php_http_header_value_to_string(header);
+ } else {
+ zend_string *zs = php_http_header_value_to_string(header);
- cb(cb_arg, crlf ? "%s: %s" PHP_HTTP_CRLF : "%s: %s", key.key->val, zs->val);
- zend_string_release(zs);
+ cb(cb_arg, crlf ? "%s: %s" PHP_HTTP_CRLF : "%s: %s", key.key->val, zs->val);
+ zend_string_release(zs);
+ }
}
}
ZEND_HASH_FOREACH_END();
}
}
ZEND_HASH_FOREACH_END();
@@
-243,6
+243,7
@@
PHP_METHOD(HttpHeader, negotiate)
return;
}
if (rs_array) {
return;
}
if (rs_array) {
+ ZVAL_DEREF(rs_array);
zval_dtor(rs_array);
array_init(rs_array);
}
zval_dtor(rs_array);
array_init(rs_array);
}