Hi,
My name is JJ.
--env--
CentOS4.3
Apache2.0
PHP5.2.0
Java1.5.0_08
JRE1.5.0_08
Tomcat5.5
mod_jk1
-------
<installed PHP5.2.0>
[root]> ./configure \
--enable-bcmath \
--enable-calendar \
--enable-dio \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-memory-limit \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-yp \
--enable-zend-multibyte \
--with-zlib \
--with-pdo-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-bz2 \
--with-config-file-path=/etc \
--with-mcrypt \
--with-mime-magic \
--with-mod_charset \
--with-xml \
--with-xmlrpc \
--with-xsl \
--without-iconv \
--with-gd --with-jpeg-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=
/usr \
--with-gettext \
--enable-gd-jis-conv \
--enable-gd-native-ttf \
--with-ttf \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--without-mysql \
--enable-fastcgi \
--prefix=/usr/php/php-5.2.0
[root]> make
[root]> make install
<installed PHP-Java-Bridge 3.1.8>
[root]> phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
[root]> ./configure --with-java=/usr/local/jdk,/usr/local/jdk/jre
[root]> make
[root]> make install
<modify php.ini>
extension_dir= "/usr/php/php-5.2.0/lib/php/extensions/no-debug-zts-
20060613"
java.home = "/usr/local/jdk"
java.library.path = "/usr/php/php-5.2.0/lib/php/extensions/no-debug-zts-
20060613"
extension = java.so
-------------------------------------------
install complete.
-------------------------------------------
[root]> php -r "phpinfo();"|grep java
PHP Warning: PHP Startup: java: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=1
PHP compiled with module API=20060613, debug=0, thread-safety=1
These options need to match
in Unknown on line 0
-------------------------------------------
phpinfo
phpinfo does not is supported by java.
And this Happened PHP Warning.
Is Warning API modify?
|