cvs: php4 /ext/pdf pdf.c
| From: | Joey Smith | Date: | Sun, 23 Jul 2000 08:31:10 +0000 |
| Subject: | cvs: php4 /ext/pdf pdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-868@lists.php.net to get a copy of this message | ||
joey Sun Jul 23 01:31:10 2000 EDT
Modified files:
/php4/ext/pdf pdf.c
Log:
Setting "compatibility" parameter requires having a PDF structure that
has NOT had PDF_open_*() called on it, according to the documentation.
There is not currently any way to obtain such from user-land in PHP.
@ Catch users trying to set "compatibility" parameter, which is not
@ supported from user-land.
#
# Not sure this is the best way to do this...
# Uwe, could you please double check this?
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.49 php4/ext/pdf/pdf.c:1.50
--- php4/ext/pdf/pdf.c:1.49 Wed Jul 5 07:30:50 2000
+++ php4/ext/pdf/pdf.c Sun Jul 23 01:31:10 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.49 2000/07/05 14:30:50 steinm Exp $ */
+/* $Id: pdf.c,v 1.50 2000/07/23 08:31:10 joey Exp $ */
/* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997 Thomas Merz. */
@@ -1844,6 +1844,11 @@
RETURN_FALSE;
}
+ if (arg2->value.str.val == "compatibility") {
+ php_error(E_ERROR,"Compatibility modes not supported at this time");
+ RETURN_FALSE;
+ }
+
PDF_set_parameter(pdf, arg2->value.str.val, arg3->value.str.val);
RETURN_TRUE;