projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
726313e
)
- fix capture mode (again)
author
Michael Wallner
<mike@php.net>
Thu, 1 Sep 2005 07:27:48 +0000
(07:27 +0000)
committer
Michael Wallner
<mike@php.net>
Thu, 1 Sep 2005 07:27:48 +0000
(07:27 +0000)
http_response_object.c
patch
|
blob
|
history
diff --git
a/http_response_object.c
b/http_response_object.c
index 4227a907efe087d76a3bb55284d89dc107b95e33..b25da77f70620ba1664f661d1bc43c482deb0e51 100644
(file)
--- a/
http_response_object.c
+++ b/
http_response_object.c
@@
-772,19
+772,19
@@
PHP_METHOD(HttpResponse, send)
/* capture mode */
if (Z_BVAL_P(GET_STATIC_PROP(catch))) {
/* capture mode */
if (Z_BVAL_P(GET_STATIC_PROP(catch))) {
- zval the_data;
+ zval
*
the_data;
-
INIT_PZVAL(&
the_data);
- php_ob_get_buffer(
&
the_data TSRMLS_CC);
- SET_STATIC_PROP(data,
&
the_data);
+
MAKE_STD_ZVAL(
the_data);
+ php_ob_get_buffer(the_data TSRMLS_CC);
+ SET_STATIC_PROP(data, the_data);
ZVAL_LONG(GET_STATIC_PROP(mode), SEND_DATA);
if (!Z_STRLEN_P(GET_STATIC_PROP(eTag))) {
ZVAL_LONG(GET_STATIC_PROP(mode), SEND_DATA);
if (!Z_STRLEN_P(GET_STATIC_PROP(eTag))) {
- char *etag = http_etag(Z_STRVAL
(the_data), Z_STRLEN
(the_data), SEND_DATA);
+ char *etag = http_etag(Z_STRVAL
_P(the_data), Z_STRLEN_P
(the_data), SEND_DATA);
UPD_STATIC_PROP(string, eTag, etag);
efree(etag);
}
UPD_STATIC_PROP(string, eTag, etag);
efree(etag);
}
- zval_dtor(&the_data);
+ zval_
ptr_
dtor(&the_data);
clean_ob = 1;
}
clean_ob = 1;
}