php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22885 Fatal errror - pdflib 4.0.3
Submitted: 2003-03-25 18:42 UTC Modified: 2003-03-27 06:47 UTC
From: magz at bop dot nu Assigned:
Status: Not a bug Package: PDF related
PHP Version: 4.3.2RC1 OS: Redhat 7.3 / gcc 2.95.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: magz at bop dot nu
New email:
PHP Version: OS:

 

 [2003-03-25 18:42 UTC] magz at bop dot nu
I've compiled pdflib 3.0.4 as follows;
./configure --without-py --without-tcl --without-perl
make
make install

..and then php4.3.2rc1;
./configure \
--with-apache=../apache_1.3.27 \
--with-config-file-path=/etc \
--enable-inline-optimization \
--enable-mime-magic \
--enable-magic-quotes \
--enable-track-vars \
--with-xml \
--with-dom \
--with-xmlrpc \
--with-mysql=/usr/local/mysql \
--enable-sockets \
--with-ldap \
--with-imap=/usr/local/imap-2002b \
--with-imap-ssl=/usr/local \
--with-mm \
--enable-memory-limit \
--enable-bcmath \
--enable-sigchild \
--with-zlib=/usr \
--with-curl=/usr/local \
--with-dom=/usr/include/libxml2/libxml \
--enable-exif \
--enable-ftp \
--with-gettext=/usr/share \
--with-gd \
--with-ttf \
--with-freetype-dir=/usr/local/include/freetype2/freetype \
--enable-gd-imgstrttf \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-tiff-lib=/usr \
--with-mcal=../libmcal \
--with-openssl=/usr/local/ssl \
--with-mcrypt \
--with-mhash \
--with-pspell \
--with-imagick \
--with-pdflib=/usr/local

make
make install

"make install" returns the following:
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/man/man1/
Installing PHP SAPI module
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment:      /usr/local/lib/php/
HTTP/1.0 0 X
Content-type: text/html

PHP Fatal error:  PDFlib error: Version mismatch in wrapper code in Unknown on line 0
[PEAR] Archive_Tar    - already installed: 0.9
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR           - already installed: 1.0.1
HTTP/1.0 0 X
Content-type: text/html

PHP Fatal error:  PDFlib error: Version mismatch in wrapper code in Unknown on line 0
[PEAR] DB             - already installed: 1.3
[PEAR] HTTP           - already installed: 1.2
[PEAR] Mail           - already installed: 1.0.1
[PEAR] Net_SMTP       - already installed: 1.0
[PEAR] Net_Socket     - already installed: 1.0.1
[PEAR] XML_Parser     - already installed: 1.0.1
[PEAR] XML_RPC        - already installed: 1.0.4
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
  program: phpextdist


I have tried using both the existing php-4.3.2RC1/ext/pdf/ files and copying the files from pdflib-4.0.3/bind/php/ext/pdf/* to php-4.3.2RC1/ext/pdf/ with the same result.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-26 05:06 UTC] magz at bop dot nu
sorry, it is pdflib 4.0.3 of course, not 3.0.4.
 [2003-03-26 09:28 UTC] iliaa@php.net
Sound like you have 2 pdf libraries installed and PHP used both are used during compilation. I have RC1 + pdflib working just fine for the longest time...
 [2003-03-26 16:46 UTC] magz at bop dot nu
Ah, yes, that must have been it. Now it's working perfectly fine.  Sorry for bothering.
 [2003-03-27 06:47 UTC] sniper@php.net
Not PHP bug -> bogus.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 05:01:28 2025 UTC