Bug #74766 [NEW]: Error building Opcache as an additional module

From: Date: Fri, 16 Jun 2017 06:42:02 +0000
Subject: Bug #74766 [NEW]: Error building Opcache as an additional module
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209549@lists.php.net to get a copy of this message
From: naf at altlinux dot org Operating system: PHP version: master-Git-2017-06-16 (Git) Package: opcache Bug Type: Bug Bug description:Error building Opcache as an additional module Description: ------------ If PHP builds with disabled opcache, then the HAVE_OPCACHE_FILE_CACHE macro is undefined in the global php_config.h . Compiling Opcache as an additional module with --enable-opcache-file in that case produces opcache.so with references to the zend_file_cache.h functions from ZendAccelerator.c, but functions itself does not compiles and links in the result opcache.so as HAVE_OPCACHE_FILE_CACHE is undef in the zend_file_cache.c . (And compiling Opcache as an additional module with --disable-opcache-file goes fine, as HAVE_OPCACHE_FILE_CACHE is disable both in the global php_config.h and ZendAccelerator.c .) Test script: --------------- Compile PHP without Opcache (with --disable-opcache --disable-opcache-file) and install it. Then compile Opcache as a module: cd ext/opcache phpize ./configure --enable-opcache --enable-opcache-file make make install Expected result: ---------------- php -r 'print "OK\n";' OK Actual result: -------------- php -r 'print "OK\n";' Failed loading opcache.so: opcache.so: undefined symbol: zend_file_cache_script_load OK -- Edit bug report at https://bugs.php.net/bug.php?id=74766&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74766&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74766&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74766&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74766&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74766&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74766&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74766&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74766&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74766&r=support Expected behavior: https://bugs.php.net/fix.php?id=74766&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74766&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74766&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74766&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74766&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74766&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74766&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74766&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74766&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74766&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74766&r=mysqlcfg

« previous php.bugs (#209549) next »