php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56393 "Invalid library"
Submitted: 2005-05-17 15:01 UTC Modified: 2005-10-23 10:19 UTC
From: jystewart@php.net Assigned:
Status: Not a bug Package: apd (PECL)
PHP Version: 5.0.3 OS: Debian, OS X Tiger
Private report: No CVE-ID: None
 [2005-05-17 15:01 UTC] jystewart@php.net
Description:
------------
I'm actually using PHP 5.0.4 but there isn't an option for 
that in the bug system at the moment.

Building either through PEAR or from source on both Debian 
Linux and Mac OS X Tiger seems to go okay but whenever I try 
and load the extension (either through php.ini or dl()) I 
get the error:

Invalid library (maybe not a PHP library) 'no-debug-non-
zts-20041030/apd.so'

Downloading a fresh tarball (using 'pear download pecl/apd') 
located the following two errors during the make process on 
OS X:

/Users/james/apd-1.0.1/apd_summary.c: In function 
'apd_summary_output_footer':
/Users/james/apd-1.0.1/apd_summary.c:294: warning: passing 
argument 6 of 'php_basename' from incompatible pointer type

These did not prevent make from completing.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-08 15:00 UTC] seth dot russell at gmail dot com
On redhat enterprise 3 linux, I also get an "invalid library" error.

My problem was caused by incorrectly setting up apd. I resolved the issue by fixing the php.ini configuration.

Some documentation I have seen said to add this line to your php.ini file:

extension=apd.so

But the new adb README (as of version 1.0.1 at least) says that it should be

zend_extension=/path/to/apd.so

That resolved the "Invalid library" issue for me.
 [2005-10-23 10:19 UTC] mike@php.net
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit http://pecl.php.net/support/ as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

No bug there.
 [2005-12-12 18:23 UTC] krystian at brazulewicz dot pl
To get it work use:
zend_extension=/usr/lib/php/modules/apd.so

instead of:
extension=apd.so
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 12:01:30 2024 UTC