Hi Rasmus,

I did not build php with it. I downloaded PDFLib from pdflib.com and 
followed their instructions ("Loadable Module (DSO)" is the recommended way 
for using PDFlib with PHP instead of rebuilding PHP with --with-pdflib, 
accrodig to their manual).

Then I copied the file libpdf_php.* from the directory 
"bind/php/<phpversion>" of the PDFlib binary distribution to the directory 
which is specified in the "extension_dir" line in php.ini 
(/usr/include/php) and inserted one line in php.ini:
extension = libpdf_php.so.

When I restart Apache2, I get this in the error log:
PHP Warning: Unknown(): Unable to load dynamic library 
/usr/include/php/libpdf_php.so - /usr/include/php/libpdf_php.so: 
zif_warn_not_available in Unknown on line 0.

I made a check in Google for zif_warn_not_available but could not find 
anything relevant.

Cheers,

Dmitry

Rasmus Lerdorf wrote:

>> The module (libpdf_php.so) is in /usr/include/php. It's the folder
>> specified in the extension_dir variable of the php.ini file.In the same
>> file, I also added extension=libpdf_php.so
> 
> Where did you get this libpdf_php.so file?  When building it from PHP
> using --with-pdf=shared it gets called pdf.so, so I suspect you have a
> bogus .so
> 
> -Rasmus

-- 
Dmitry

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to