|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-10-20 18:50 UTC] jseder at gmail dot com
Description:
------------
I can't get memcache to work with PHP7 RC5 in Windows 10 using the 3.0.8 DLL.
In fact, neither of these versions of php_memcache.dll works with PHP7 RC5:
2013-02-20 08:09 69,120
2014-04-10 12:09 90,112
Setting the 69,120 byte DLL (which worked with PHP5) as a PHP7 extension generates "PHP Warning: PHP Startup: Unable to load dynamic library 'ext\php_memcache.dll' - %1 is not a valid Win32 application."
The 90,112 byte DLL (the current 3.0.8 version) generates "PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php7\ext\php_memcache.dll' - The specified module could not be found." (The file is there - I just renamed the DLLs between these steps. And I checked it a zillion times...)
Is there a version of php_memcache.dll built with VS14?
Test script:
---------------
<?php
$memcache = false;
if(class_exists("Memcache")) {
echo 'Class Memcache exists!';
$memcache = new Memcache;
$memcacherror = $memcache->connect("localhost",11211);
if(false==$memcacherror) {
echo 'memcache->connect returned false';
exit;
}
else echo 'memcache daemon version: '.$memcache->getVersion();
}
else echo 'class Memcache does not exist';
echo "\n\n";
?>
Expected result:
----------------
Class Memcache exists!
memcache daemon version: 1.4.5
Actual result:
--------------
PHP error.log: either
"PHP Warning: PHP Startup: Unable to load dynamic library 'ext\php_memcache.dll' - %1 is not a valid Win32 application."
or
"PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php7\ext\php_memcache.dll' - The specified module could not be found."
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
On CentOS 7, PHP 7.0.0, memcache 3.0.8: ------------------------------------------- [root@mahadeva memcache-3.0.8]# make /bin/sh /root/rpmbuild/SOURCES/memcache-3.0.8/libtool --mode=compile cc -I/usr/php70/include/php -I. -I/root/rpmbuild/SOURCES/memcache-3.0.8 -DPHP_ATOM_INC -I/root/rpmbuild/SOURCES/memcache-3.0.8/include -I/root/rpmbuild/SOURCES/memcache-3.0.8/main -I/root/rpmbuild/SOURCES/memcache-3.0.8 -I/usr/php70/include/php -I/usr/php70/include/php/main -I/usr/php70/include/php/TSRM -I/usr/php70/include/php/Zend -I/usr/php70/include/php/ext -I/usr/php70/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/rpmbuild/SOURCES/memcache-3.0.8/memcache.c -o memcache.lo mkdir .libs cc -I/usr/php70/include/php -I. -I/root/rpmbuild/SOURCES/memcache-3.0.8 -DPHP_ATOM_INC -I/root/rpmbuild/SOURCES/memcache-3.0.8/include -I/root/rpmbuild/SOURCES/memcache-3.0.8/main -I/root/rpmbuild/SOURCES/memcache-3.0.8 -I/usr/php70/include/php -I/usr/php70/include/php/main -I/usr/php70/include/php/TSRM -I/usr/php70/include/php/Zend -I/usr/php70/include/php/ext -I/usr/php70/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /root/rpmbuild/SOURCES/memcache-3.0.8/memcache.c -fPIC -DPIC -o .libs/memcache.o In file included from /root/rpmbuild/SOURCES/memcache-3.0.8/php_memcache.h:34:0, from /root/rpmbuild/SOURCES/memcache-3.0.8/memcache.c:30: /root/rpmbuild/SOURCES/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory #include "ext/standard/php_smart_str_public.h" ^ compilation terminated. make: *** [memcache.lo] Error 1 -------------------------------------------