Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#357 closed defect (invalid)

PHP Startup: XCache: Unable to initialize module

Reported by: franceserv Owned by: moo
Priority: major Milestone: black hole
Component: cacher Version: 3.2.0
Keywords: Cc:
Application: PHP Version: 5.4.39
Other Exts: SAPI: FastCGI
Probability: Blocked By:
Blocking:

Description

Greetings,

After to have installer a second webserver with the same configuration file, i can't enable XCache on this new server and i don't understand the reason. I have the same error with 3.1 and 3.2.

This is the error when i enable the extension and i restart the server :

Gracefully shutting down php-fpm . done
Starting php-fpm [23-Mar-2015 15:10:35] NOTICE: PHP message: PHP Warning:  PHP Startup: XCache: Unable to initialize module
Module compiled with module API=20090626
PHP    compiled with module API=20100525
These options need to match
 in Unknown on line 0
 done

My compilation is this one :

/usr/local/php54/bin/phpize

Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525

./configure --enable-xcache --with-php-config=/usr/local/php54/bin/php-config
make

Build complete.
Don't forget to run 'make test'.

make test

=====================================================================
PHP         : /usr/local/php54/bin/php
CWD         : /root/fsh/install/installs/xcache/xcache-3.2.0
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2015-03-23 15:17:21
=====================================================================
FAIL xcache requires deep copying arg info [tests/xcache_deep_copy_arg_info.phpt]
FAIL xcache requires deep copying opcodes for __FILE__ and __DIR__ [tests/xcache_deep_copy_opcodes_for_const.phpt]
FAIL xcache requires deep copying static variables in shallow copy mode [tests/xcache_deep_copy_static_variables.phpt]
FAIL include absolute path [tests/xcache_include_absolute.phpt]
FAIL include relative to current working dir [tests/xcache_include_relative_cwd.phpt]
FAIL include relative to current file [tests/xcache_include_relative_file.phpt]
SKIP xcache_is_autoglobal [tests/xcache_is_autoglobal.phpt] reason: xcache extension not loaded
SKIP xcache shallow copying precondition: early binding changes constant inside opcode for PHP5.2- [tests/xcache_shallow_copy_check_early_binding.phpt] reason: only needed for PHP 5.2 or less
SKIP xcache_set/get test [tests/xcache_var.phpt] reason: xcache extension not loaded
=====================================================================
TIME END 2015-03-23 15:17:22

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :    1
---------------------------------------------------------------------

Number of tests :    9                 6
Tests skipped   :    3 ( 33.3%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    6 ( 66.7%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    1 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
xcache requires deep copying arg info [tests/xcache_deep_copy_arg_info.phpt]
xcache requires deep copying opcodes for __FILE__ and __DIR__ [tests/xcache_deep_copy_opcodes_for_const.phpt]
xcache requires deep copying static variables in shallow copy mode [tests/xcache_deep_copy_static_variables.phpt]
include absolute path [tests/xcache_include_absolute.phpt]
include relative to current working dir [tests/xcache_include_relative_cwd.phpt]
include relative to current file [tests/xcache_include_relative_file.phpt]
=====================================================================

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.  You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]: n

I don't understand what is the problem because on a first server i don't have this problem.

Could you help me please ?

Change History (2)

comment:1 in reply to: ↑ description Changed 3 years ago by moo

It's a build problem. I can't provide free support for issue that is not cause by XCache itself. Please search for "Module compiled with module" in google, get help from Google Groups, or contact me via phpxcache@…

Last edited 3 years ago by moo (previous) (diff)

comment:2 Changed 3 years ago by moo

  • Milestone changed from undecided to black hole
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.