]> granicus.if.org Git - php/commitdiff
- fixed handling of fdf data (application/vnd.fdf)
authorUwe Steinmann <steinm@php.net>
Wed, 5 Jul 2000 08:57:37 +0000 (08:57 +0000)
committerUwe Steinmann <steinm@php.net>
Wed, 5 Jul 2000 08:57:37 +0000 (08:57 +0000)
main/Makefile.in
main/SAPI.c
main/fdfdata.c [new file with mode: 0644]
main/fdfdata.h [new file with mode: 0644]

index d334842905c2435686c088d16d86078a31fc5c0d..1686bf4bd4cfc62b61626d1b18c3cb8058ad63da 100644 (file)
@@ -4,7 +4,7 @@ LTLIBRARY_SOURCES = \
        main.c internal_functions.c snprintf.c php_sprintf.c \
        configuration-parser.c configuration-scanner.c \
        safe_mode.c fopen-wrappers.c php_realpath.c alloca.c \
-       php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
+       php_ini.c SAPI.c rfc1867.c fdfdata.c php_content_types.c strlcpy.c \
        strlcat.c mergesort.c reentrancy.c php_variables.c php_ticks.c php_virtual_cwd.c
 
 include $(top_srcdir)/build/ltlib.mk
index 5b372f2a50b6d440fc634b73c9c8b6588ff2e079..aaceb4266c36367fa7e0e41ab7528125d1431c52 100644 (file)
@@ -28,6 +28,9 @@
 #endif
 
 #include "rfc1867.h"
+#if HAVE_FDFLIB
+#include "fdfdata.h"
+#endif
 
 #ifdef PHP_WIN32
 #define STRCASECMP stricmp
 #define STRCASECMP strcasecmp
 #endif
 
+#include "php_content_types.h"
 
 SAPI_POST_READER_FUNC(sapi_read_standard_form_data);
+SAPI_POST_READER_FUNC(php_default_post_reader);
 
 static sapi_post_entry supported_post_entries[] = {
 #if HAVE_FDFLIB
-       { "application/vnd.fdf",        sizeof("application/vnd.fdf")-1,        sapi_read_standard_form_data },
+       { "application/vnd.fdf",        sizeof("application/vnd.fdf")-1,        php_default_post_reader, fdf_post_handler},
 #endif
        { NULL, 0, NULL }
 };
diff --git a/main/fdfdata.c b/main/fdfdata.c
new file mode 100644 (file)
index 0000000..96a78e5
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+   +----------------------------------------------------------------------+
+   | PHP version 4.0                                                      |
+   +----------------------------------------------------------------------+
+   | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
+   +----------------------------------------------------------------------+
+   | This source file is subject to version 2.02 of the PHP license,      |
+   | that is bundled with this package in the file LICENSE, and is        |
+   | available at through the world-wide-web at                           |
+   | http://www.php.net/license/2_02.txt.                                 |
+   | If you did not receive a copy of the PHP license and are unable to   |
+   | obtain it through the world-wide-web, please send a note to          |
+   | license@php.net so we can mail you a copy immediately.               |
+   +----------------------------------------------------------------------+
+   | Authors: Uwe Steinmann <steinm@php.net>                              |
+   +----------------------------------------------------------------------+
+ */
+/* $Id$ */
+
+#include <stdio.h>
+#include "php.h"
+#include "ext/standard/php_standard.h"
+#include "zend_globals.h"
+#include "php_globals.h"
+#include "php_variables.h"
+#include "fdfdata.h"
+
+#if HAVE_FDFLIB
+SAPI_POST_HANDLER_FUNC(fdf_post_handler)
+{
+       zval *array_ptr = (zval *) arg;
+
+}
+#endif
+
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */
diff --git a/main/fdfdata.h b/main/fdfdata.h
new file mode 100644 (file)
index 0000000..7f4f45e
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef FDFDATA_H
+#define FDFDATA_H
+
+#include "SAPI.h"
+
+SAPI_POST_HANDLER_FUNC(fdf_post_handler);
+
+#endif /* FDFDATA_H */