cvs: /php3 ChangeLog /php3/functions fdf.c
| From: | Uwe Steinmann | Date: | Tue, 05 Oct 1999 13:28:46 +0000 |
| Subject: | cvs: /php3 ChangeLog /php3/functions fdf.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11548@lists.php.net to get a copy of this message | ||
steinm Tue Oct 5 09:28:46 1999 EDT
Modified files:
/php3 ChangeLog
/php3/functions fdf.c
Log:
- The new version 4.0 of Fdf Toolkit seems to behave slightly diffently.
The FDFGetValue functions returns the number of bytes of a value without
counting the trailing 0. Fixed it.
Index: php3/ChangeLog
diff -u php3/ChangeLog:1.776 php3/ChangeLog:1.777
--- php3/ChangeLog:1.776 Wed Sep 29 10:31:43 1999
+++ php3/ChangeLog Tue Oct 5 09:28:44 1999
@@ -2,6 +2,7 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
???? ??, 1999, Version 3.0.13
+- Proper handling of the slightly different behavior of Fdf Toolkit 4.0 (U. Steinmann)
- Fixed LOB/Persistent-Connection related OCI8-Crash (Thies)
- Added a function for applying a gamma correction to a GD image
Example: imagegammacorrect($im,1.8,2.2); (markonen)
Index: php3/functions/fdf.c
diff -u php3/functions/fdf.c:1.7 php3/functions/fdf.c:1.8
--- php3/functions/fdf.c:1.7 Fri Aug 6 02:51:22 1999
+++ php3/functions/fdf.c Tue Oct 5 09:28:45 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fdf.c,v 1.7 1999/08/06 06:51:22 steinm Exp $ */
+/* $Id: fdf.c,v 1.8 1999/10/05 13:28:45 steinm Exp $ */
/* FdfTk lib 2.0 is a Complete C/C++ FDF Toolkit available from
http://beta1.adobe.com/ada/acrosdk/forms.html.
*/
@@ -227,6 +227,13 @@
nr++;
if(err != FDFErcOK)
printf("Aiii, error\n");
+ /* In the inofficial version of FdfTK 4.0 (as FDFGetVersion says, the
+ library has a name with version 3.0, don't know what adobe has in
+ mind) the number of bytes of the value doesn't include the trailing
+ '\0'. This was not the case in 2.0
+ */
+ if(strcmp(FDFGetVersion(), "2.0"))
+ nr++;
buffer = emalloc(nr);
err = FDFGetValue(fdf, arg2->value.str.val, buffer, nr, &nr);
if(err != FDFErcOK)