i need php4 (mod_php) with pdflib-support (pdflib.com) the USE-flag "pdflib" is not used for mod_php, why? Reproducible: Always Steps to Reproduce: 1. 2. 3.
Moved to PECL; emerge dev-php/PECL-pdflib
sorry! i mean dev-php/mod_php i had successfull emerged dev-php/PECL-pdflib php -m | grep pdf pdf fine. but if i called the phpinfo() funktion inside a phpinfo.php via apach2+mod_php then there is nothing with pdf :( phpinfo(): Configure Command: ... '--without-pdflib' ...
(In reply to comment #2) > phpinfo(): > Configure Command: ... '--without-pdflib' ... Sure, because you are using PECL, you don't have pdflib support compiled *into* PHP.
(In reply to comment #3) > (In reply to comment #2) > > phpinfo(): > > Configure Command: ... '--without-pdflib' ... > > Sure, because you are using PECL, you don't have pdflib support compiled *into* > PHP. > I'm a (mod_)php-newbie :-) Please can you tell me how i get pdflib-support into my mod_php with "normal" gentoo-tool or is it impossible? If i execute my php-skript (with pdflib-access inside) then i got the error: Fatal error: Call to undefined function: pdf_new() Fatal error: Call to undefined function: pdf_delete() ... Is there a howto mod_php/pdflib? Thxs men
i try to emerge mod_php with pdflib-support: EXTRA_ECONF="--with-pdflib=/usr" emerge -vaD dev-php/mod_php but ... the configure looks like this: ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --enable-experimental-zts --with-apxs2=/usr/sbin/apxs2 --disable-cli --without-pear --with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-interbase --without-ming --without-swf --with-sybase=/usr --with-gdbm=/usr --without-fdftk --with-java=/opt/sun-jdk-1.5.0.05 --without-mcal --with-pdflib=/usr ^^^^^^^^^^^^^^^^^^#1 --without-unixODBC --with-pgsql=/usr --without-snmp --with-xpm-dir=/usr/X11R6 --without-gmp --without-mssql --without-crack --without-pdflib --with-gd ^^^^^^^^^^^^^^^^#2 --enable-gd-native-ttf --with-png=/usr --with-png-dir=/usr --with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif --with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-freetype-dir=/usr --with-ttf=/usr --with-t1lib=/usr --with-gettext --with-pspell=/usr --with-openssl=/usr --without-imap --without-ldap --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --without-kerberos --with-pam --disable-memory-limit --disable-ipv6 --without-yaz --disable-debug --with-curlwrappers --with-curl=/usr --enable-dbx --with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt --with-xslt-sablot --with-xmlrpc --enable-wddx --with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr --with-cdb --enable-pcntl --enable-bcmath --enable-calendar --enable-dbase --enable-filepro --enable-ftp --with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-iconv --enable-shmop --enable-dio --enable-yp --without-ncurses --without-readline --enable-inline-optimization --enable-track-vars --enable-trans-sid --enable-versioning --with-config-file-path=/etc/php/apache2-php4 --libdir=/usr/lib/php --without-pear how can i override the "--without-pdflib" configure-option?
(In reply to comment #4) > Please can you tell me how i get pdflib-support into my mod_php with "normal" > gentoo-tool or is it impossible? emerge PECL-pdflib and run etc-update, so that you have extension=pdf.so in php.ini and restart apache. Once again, we don't compile pdflib support into php any more, it's unsupported upstream (http://www.zend.com/manual/ref.pdf.php). Bugzilla is for bugs, please ask for support in forums.gentoo.org or #gentoo-apache on IRC in future.
(In reply to comment #6) > (In reply to comment #4) > > Please can you tell me how i get pdflib-support into my mod_php with "normal" > > gentoo-tool or is it impossible? > > emerge PECL-pdflib and run etc-update, so that you have extension=pdf.so in > php.ini and restart apache. Once again, we don't compile pdflib support into php > any more, it's unsupported upstream (http://www.zend.com/manual/ref.pdf.php). > Allright. Understand :) > Bugzilla is for bugs, please ask for support in forums.gentoo.org or > #gentoo-apache on IRC in future. Okay!!! Very Last Message ... perhaps it is a "bug" :) ... [04-Nov-2005 13:08:41] PHP Warning: Unknown(): pdf: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20020429, debug=0, thread-safety=1 These options need to match in Unknown on line 0 Something is wrong! I re-emerged mod_php and dev-php/PECL-pdflib at the same time ... so different compiler-flags are not possible (i think) ... why is the module pdf compiled "none-thread-safety" but mod_php is compiled "thread-safe"? here my /etc/php/apache2-php4/php.ini: ; PECL-pdflib extension=pdf.so ; org. PDFLib 6.0.1 (pdflib.com) ;extension=libpdf_php.so
If you compiled php with USE=threads, then it needs to be zend_extension_ts=pdf.so, I guess (really hard to tell, emerge info missing here, also etc-update should do this just fine for you without any manual intervention needed). Once again, please direct your support questions to forums or IRC.