summaryrefslogtreecommitdiff
path: root/ext/fdf/fdf.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-03-18 02:35:10 +0000
committerZeev Suraski <zeev@php.net>2001-03-18 02:35:10 +0000
commitfbbf5c0faa9b425ce76be763b5ebfe5259fca075 (patch)
treed3c7de021c7d0914a2e0af118b9934cccdccf14b /ext/fdf/fdf.c
parentd3572f74bbdf889a686c14e2bf98e17eac39efc1 (diff)
downloadphp-git-fbbf5c0faa9b425ce76be763b5ebfe5259fca075.tar.gz
Fix reference to nuked function
Diffstat (limited to 'ext/fdf/fdf.c')
-rw-r--r--ext/fdf/fdf.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index a8418a3219..bdd73c9b6a 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -115,6 +115,15 @@ static sapi_post_entry supported_post_entries[] = {
{ NULL, 0, NULL }
};
+#define FDF_POST_CONTENT_TYPE "application/vnd.fdf"
+
+static sapi_post_entry php_fdf_post_entry = {
+ FDF_POST_CONTENT_TYPE,
+ sizeof(FDF_POST_CONTENT_TYPE)-1,
+ sapi_read_standard_form_data,
+ php_std_post_handler
+};
+
PHP_MINIT_FUNCTION(fdf)
@@ -123,9 +132,9 @@ PHP_MINIT_FUNCTION(fdf)
FDF_GLOBAL(le_fdf) = zend_register_list_destructors_ex(phpi_FDFClose, NULL, "fdf", module_number);
/* add handler for Acrobat FDF form post requests */
- sapi_add_post_entry("application/vnd.fdf", php_default_post_reader, fdf_post_handler);
+ sapi_register_post_entry(&php_fdf_post_entry);
- /* Constants used by fdf_set_opt() */
+ /* Constants used by fdf_set_opt() */
REGISTER_LONG_CONSTANT("FDFValue", FDFValue, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("FDFStatus", FDFStatus, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("FDFFile", FDFFile, CONST_CS | CONST_PERSISTENT);