mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
- fixed handling of fdf data (application/vnd.fdf)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+6
-1
@@ -28,6 +28,9 @@
|
||||
#endif
|
||||
|
||||
#include "rfc1867.h"
|
||||
#if HAVE_FDFLIB
|
||||
#include "fdfdata.h"
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define STRCASECMP stricmp
|
||||
@@ -35,12 +38,14 @@
|
||||
#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 }
|
||||
};
|
||||
|
||||
@@ -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:
|
||||
*/
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef FDFDATA_H
|
||||
#define FDFDATA_H
|
||||
|
||||
#include "SAPI.h"
|
||||
|
||||
SAPI_POST_HANDLER_FUNC(fdf_post_handler);
|
||||
|
||||
#endif /* FDFDATA_H */
|
||||
Reference in New Issue
Block a user