ID: 10778
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: PDF related
Operating system: Solaris 7
PHP Version: 4.0.5
Description: ext/pdf does not work with pdflib 4.0

Sorry, but this is not true.  Standard "configure" shipped
with PHP 4.0.5 when detecting PDFlib assumes (incorrectly
for PDFlib 4.x) a separate libtiff, libjpeg, libpng and
libz.  PDFlib 4.x has these built-in.  See
ext/pdf/config.m4:

  LIBS="$LIBS -ltiff -ljpeg -lpng -lz"
  AC_CHECK_LIB(pdf, PDF_show_boxed, [

This fails unnecessarily on systems without separate tiff,
jpeg, png and z libs (none of which are needed by PDFlib
4.x).  If you have separate libs, the problem will be hidden
from you.

As previously noted, using the replacement files from PDFlib
gets around this problem (by removing the incorrect library
dependency assumption).  It'd be really useful if PHP
4.0.6's PDFlib support was upgraded to support PDFlib 4.x
"out of the box".

Thanks..


Previous Comments:
---------------------------------------------------------------------------

[2001-05-18 06:54:38] [EMAIL PROTECTED]
PHP 4.0.5 supports pdflib 4.0 just fine.

--Jani


---------------------------------------------------------------------------

[2001-05-10 03:36:49] [EMAIL PROTECTED]
ext/pdf is written to detect and work with pdflib 3.x;
unfortunately it is pdflib 4.x that is available for
download from the pdflib Web site - leading to PHP failing
to compile/link with pdflib.

The fix is simple enough (it'd be nice if this was to be
incorporated directly into PHP "as standard" for those
systems whereby installing autoconf isn't really necessary);
simply replace the ext/pdf contents of PHP with that supplied
by pdflib 4.0, then rebuild configure.



---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=10778


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to