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:
f6280c0
)
- example
author
Michael Wallner
<mike@php.net>
Fri, 22 Jul 2005 12:39:12 +0000
(12:39 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 22 Jul 2005 12:39:12 +0000
(12:39 +0000)
http_response_object.c
patch
|
blob
|
history
diff --git
a/http_response_object.c
b/http_response_object.c
index 5ca8edd70fdb8f75a0039125f6efc1e517c43f36..28d662ae6cc9d925a2bfb4179d9ff66ac3c5d7ac 100644
(file)
--- a/
http_response_object.c
+++ b/
http_response_object.c
@@
-179,6
+179,8
@@
static inline void _http_response_object_declare_default_properties(TSRMLS_D)
DCL_STATIC_PROP_N(PROTECTED, contentDisposition);
DCL_STATIC_PROP(PROTECTED, long, bufferSize, HTTP_SENDBUF_SIZE);
DCL_STATIC_PROP(PROTECTED, double, throttleDelay, 0.0);
DCL_STATIC_PROP_N(PROTECTED, contentDisposition);
DCL_STATIC_PROP(PROTECTED, long, bufferSize, HTTP_SENDBUF_SIZE);
DCL_STATIC_PROP(PROTECTED, double, throttleDelay, 0.0);
+
+ DCL_STATIC_PROP(PUBLIC, string, dummy, "EMPTY");
}
/* ### USERLAND ### */
}
/* ### USERLAND ### */
@@
-583,6
+585,17
@@
PHP_METHOD(HttpResponse, getFile)
/* {{{ proto bool HttpResponse::send([bool clean_ob = true])
*
* Finally send the entity.
/* {{{ proto bool HttpResponse::send([bool clean_ob = true])
*
* Finally send the entity.
+ *
+ * Example:
+ * <pre>
+ * <?php
+ * HttpResponse::setCache(true);
+ * HttpResponse::setContentType('application/pdf');
+ * HttpResponse::setContentDisposition("$user.pdf", false);
+ * HttpResponse::setFile('sheet.pdf');
+ * HttpResponse::send();
+ * ?>
+ * </pre>
*/
PHP_METHOD(HttpResponse, send)
{
*/
PHP_METHOD(HttpResponse, send)
{