[PHP-DEV] PHP 4.0 Bug #8284: phpi_get_le_gd not found (in pdf.c) From: l <email protected>
Date: 12/15/00

From: l <email protected>
Operating system: Linux 2.4.0-test12
PHP version: 4.0.3pl1
PHP Bug Type: Compile Failure
Bug description: phpi_get_le_gd not found (in pdf.c)

Hello,

during compilation of RPM php-4.0.3pl1 for a RedHat 7.0 system, using PDFLib-3.02, I noticed this failure during final link :
phpi_get_le_gd not found (in pdf.c)

Here is a patch to correct this (I don't know if it's appropriate):
--- php-4.0.3pl1/ext/pdf/pdf.c.lla Tue Oct 10 09:42:53 2000
+++ php-4.0.3pl1/ext/pdf/pdf.c Fri Dec 15 22:34:08 2000
@@ -2506,7 +2506,7 @@
        convert_to_long_ex(argv[1]);
        gid=(*argv[1])->value.lval;
        im = zend_list_find(gid, &type);
- if (!im || type != phpi_get_le_gd()) {
+ if (!im || type != PDF_GLOBAL(le_pdf_image)) {
                php_error(E_WARNING, "pdf: Unable to find image pointer");
                RETURN_FALSE;
        }

-- 
Edit Bug report at: http://bugs.php.net/?id=8284&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>