Home  |  Linux  | Mysql  | PHP  | XML
From:陈雄 Date:Wed Jan  6 13:38:32 2010
Subject:What need to do for supporting a new extension?
I use Ubuntu 9.10,PHP 5.3.1,apache2.24
I compiled the PHP from php source successfully.

Now I want to build the mbstring module from source. My operations:
shell> cd php src dir/
shell> phpize
shell> .configure
shell> make && sudo make install
shell> echo ectension=mbstring.so >> php.ini
Now it has built the mbstring.so.
But my php still did not support this module.

I found something in the log files of Apache Httpd server.
"PHP Startup: mbstring: Unable to initialize module
51 Module compiled with module API=20060613
52 PHP compiled with module API=20090626
53 These options need to match "

It seems so strange:
why the module APIS are different when I build the PHP and PHP modules from
the same php source tar file.

another question:
If I want to increase a dynamic module for PHP, What do I need to do?
1.setting the php.ini file
2.move the *.so files to the specified directory(extension_dir)
3.move the related headers to include directory( is this necessary?)
is this enough for finishing that task( to support a module)?
--
Best Wishes,
Joewan

Navigate in group php.install at sever news.php.net
Previous Next


Your recent visits
Re: [PHP-INSTALL] What need to do for supporting a new extension?
=?windows-1251?B?TGV0IHRoZSBnb3Zlcm5tZW50IGZ1bmQgeW91ciBkcmVhbXMh?=
PHP-5.2 and Apache MPM Worker
Re: [PHP-INSTALL] PHP-5.2 and Apache MPM Worker
RE: [PHP-INSTALL] RE:



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants