diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-17 20:23:59 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-17 20:23:59 +0000 |
commit | a6393de6f7211ec72c1cdffbc30078fe35ce87c3 (patch) | |
tree | c065f101d37a1b091657cd7f7f3418126e51f1a6 /ext/fdf | |
parent | 8805f09d87b09e43cef2b33be93dfb004c4a18b1 (diff) | |
download | php-git-a6393de6f7211ec72c1cdffbc30078fe35ce87c3.tar.gz |
Make POST handling the way it should be. RFC1867, and any future POST handlers we might
have in the future now obey to the variables_order directive, and there's a real way modular
way to handle POST content.
This is all untested, BEFORE_SAPI_POST_PATCH_17_FEB_2000 tagged before submission
@- Made multipart/form-data content obey to the variables_order directive (Zeev)
Diffstat (limited to 'ext/fdf')
-rw-r--r-- | ext/fdf/fdf.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index 34e3aaca0f..3e4b7dd9c4 100644 --- a/ext/fdf/fdf.c +++ b/ext/fdf/fdf.c @@ -27,6 +27,22 @@ #undef THREAD_SAFE #endif + +#if 0 + if((NULL != SG(request_info).content_type) && (0 == strcmp(SG(request_info).content_type, "application/vnd.fdf"))) { + pval *tmp; + + ALLOC_ZVAL(tmp); + tmp->value.str.len = SG(request_info).post_data_length; + tmp->value.str.val = estrndup(SG(request_info).post_data, SG(request_info).post_data_length); + tmp->type = IS_STRING; + INIT_PZVAL(tmp); + zend_hash_add(&EG(symbol_table), "HTTP_FDF_DATA", sizeof("HTTP_FDF_DATA"), &tmp, sizeof(pval *),NULL); + + } else { +#endif + + #include "php.h" #include "ext/standard/head.h" #include <math.h> |