|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56974 PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) ''
Submitted: 2006-04-24 15:11 UTC Modified: 2015-02-26 07:35 UTC
Avg. Score:4.0 ± 1.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: chad at herballure dot com Assigned:
Status: Suspended Package: apd (PECL)
PHP Version: 5.1.2 OS: Suse 9.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chad at herballure dot com
New email:
PHP Version: OS:


 [2006-04-24 15:11 UTC] chad at herballure dot com
The following warning is generated on startup of PHP 5.1.2 (Apache mod_php SAPI, prefork MPM):
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) ''

Differences from php.ini-dist:

short_open_tag = Off
allow_call_time_pass_reference = Off
safe_mode_protected_env_vars = LD_LIBRARY_PATH,LD_DEBUG,LD_PRELOAD
error_reporting  =  E_ALL
display_startup_errors = On
log_errors = On
ignore_repeated_errors = On
register_long_arrays = Off
register_argc_argv = Off
magic_quotes_gpc = Off
default_charset = "utf8"
include_path = ".:/usr/local/php/includes:/usr/local/lib/php"
; extension_dir is set to where PECL installed things
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20050922/"
allow_url_fopen = Off
session.bug_compat_42 = 0
session.hash_bits_per_character = 6

Configure line:
'/home/chad/build/php-5.1.2/configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-bz2' '--with-curl' '--with-gd' '--with-gettext' '--with-gmp' '--with-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-mysql=/opt/mysql' '--with-mysqli=/opt/mysql/bin/mysql_config' '--with-openssl' '--with-pdo-mysql=/opt/mysql' '--without-pdo-sqlite' '--with-xmlrpc' '--with-xsl=/usr/local' '--with-zlib' '--enable-bcmath' '--disable-cgi' '--enable-mbstring' '--enable-memory-limit' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-zend-multibyte'

And FWIW, here's the file type of that library:
$ file ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-26 09:22 UTC] chad at herballure dot com
Minor clarifications: APD version 1.0.1, PHP 5.1.2, Suse 9.2 Professional, with Apache 2.0.55 compiled from source.

I had been interested in APD due to its mention in "Advanced PHP Programming" .
 [2006-05-06 15:55 UTC] jeff at makemyshow dot com
I'm having the same problem with NetBSD on Alpha. This 

 APD 1.0.1 (installed with peardev)
 PHP 5.1.1 (built from pkgsrc)
 Apache 2.0.55 (built from pkgsrc)

$ file /usr/pkg/lib/php/20040412/
/usr/pkg/lib/php/20040412/ ELF 64-bit LSB shared 
object, Alpha (unofficial), version 1 (SYSV), not 
 [2006-05-06 16:05 UTC] jeff at makemyshow dot com
I fixed this by using:


... to load the extension. It now appears in phpinfo(). 
Suggest a note in the installation process to tell users 
to do this rather than configure a normal PHP extension.

 [2015-02-26 07:35 UTC]
-Status: Open +Status: Suspended
 [2015-02-26 07:35 UTC]
APD hasn't had a release in 10 years, this means it's source code is way out of sync with modern PHP.

I'm going to mark this bug as suspended, the report can still be found if a maintainer for APD comes forward.

Sorry about the wait.
 [2017-10-23 08:03 UTC] cerbock at nate dot com
A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Invalid library (maybe not a PHP library) '/usr/local/php/modules/'

Filename: Unknown

Line Number: 0

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 03:03:42 2022 UTC