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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC