summaryrefslogtreecommitdiff
path: root/ext/fdf
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-17 20:23:59 +0000
committerZeev Suraski <zeev@php.net>2000-02-17 20:23:59 +0000
commita6393de6f7211ec72c1cdffbc30078fe35ce87c3 (patch)
treec065f101d37a1b091657cd7f7f3418126e51f1a6 /ext/fdf
parent8805f09d87b09e43cef2b33be93dfb004c4a18b1 (diff)
downloadphp-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.c16
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>