php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56540 PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'memcache.
Submitted: 2005-09-13 07:58 UTC Modified: 2006-08-22 16:54 UTC
From: selecter at spray dot se Assigned:
Status: Not a bug Package: memcache (PECL)
PHP Version: 5.0.3 OS: Linux Debian Sarge
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:
Package:
Bug Type:
Summary:
From: selecter at spray dot se
New email:
PHP Version: OS:

 

 [2005-09-13 07:58 UTC] selecter at spray dot se
Description:
------------
$ php
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'memcache.so'  in Unknown on line 0

module was build with custom comand:
gcc -o memcache.so memcache.c -shared -Iblablabla

Expected result:
----------------
I expected module to load.

Actual result:
--------------
Module didn't load

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-13 08:00 UTC] tony2001 at phpclub dot net
Use `phpize && configure && make` instead of "custom" commands.
 [2005-09-13 08:07 UTC] selecter at spray dot se
Thanks! :) You really should add it to README file
 [2005-09-13 08:17 UTC] tony2001 at phpclub dot net
This is written in the docs:
http://www.php.net/manual/en/install.pecl.phpize.php
 [2006-08-22 16:49 UTC] yongjuanhe at hotmail dot com
I have the similiar problem like you.

I wrote a make file which can be used to generated .so file. Also, I just copied a make file and modified it (this is the first time I write it)
Once I type in make in the project directory, I have the following message.

[root@localhost InOpen]# make
gcc --shared --whole-archive -o inopen.so ini_open_php.o -lusb
ar rcs inopen.a ini_open_php.o
[root@localhost InOpen]#

Once I restart the lampp server (http://www.apachefriends.org/en/xampp-linux.html#377) the following message is displayed.
[root@localhost lampp]# ./lampp restart
Stopping XAMPP for Linux 1.5.3a...
XAMPP: Stopping Apache with SSL...
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'inopen.so'  in Unknown on line 0
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.5.3a...
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'inopen.so'  in Unknown on line 0
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
[root@localhost lampp]#

If you can give me any suggeation, I will preciate it.

Thank you so much in advance

Jane
 [2006-08-22 16:54 UTC] tony2001 at phpclub dot net
Please read what I said to the reporter and ask further questions at pecl-dev@lists.php.net.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 04:03:40 2021 UTC