cvs: php4 /ext/fdf fdf.c
| From: | Jani Taskinen | Date: | Sun, 18 Mar 2001 05:52:41 +0000 |
| Subject: | cvs: php4 /ext/fdf fdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4636@lists.php.net to get a copy of this message | ||
sniper Sat Mar 17 21:52:41 2001 EDT
Modified files:
/php4/ext/fdf fdf.c
Log:
Fix the fix. Plus killed some compile warnings.
Index: php4/ext/fdf/fdf.c
diff -u php4/ext/fdf/fdf.c:1.40 php4/ext/fdf/fdf.c:1.41
--- php4/ext/fdf/fdf.c:1.40 Sat Mar 17 18:35:10 2001
+++ php4/ext/fdf/fdf.c Sat Mar 17 21:52:40 2001
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fdf.c,v 1.40 2001/03/18 02:35:10 zeev Exp $ */
+/* $Id: fdf.c,v 1.41 2001/03/18 05:52:40 sniper Exp $ */
/* FdfTk lib 2.0 is a Complete C/C++ FDF Toolkit available from
http://beta1.adobe.com/ada/acrosdk/forms.html.
*/
@@ -108,20 +108,13 @@
(void)FDFClose(fdf);
}
-static sapi_post_entry supported_post_entries[] = {
-#if HAVE_FDFLIB
- {
"application/vnd.fdf", sizeof("application/vnd.fdf")-1, php_default_post_reader,
fdf_post_handler},
-#endif
- { 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
+ fdf_post_handler
};
@@ -185,7 +178,7 @@
FDFErc err;
/* remove handler for Acrobat FDF form post requests */
- sapi_remove_post_entry("application/vnd.fdf");
+ sapi_unregister_post_entry(&php_fdf_post_entry);
#ifdef PHP_WIN32
return SUCCESS;
@@ -778,10 +771,9 @@
char *name=NULL,*value=NULL,*p;
int name_len=0,value_len=0;
char *lastfieldname =NULL;
- char *strtok_buf = NULL;
char *filename = NULL;
FDFErc err;
- ASInt32 nBytes, datalen;
+ ASInt32 nBytes;
zval *array_ptr = (zval *) arg;
ELS_FETCH();
PLS_FETCH();