• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Issue /opt/plesk/php/7.0/bin/pecl install memcache error !!

WSNHosting

Basic Pleskian
downloading memcache-2.2.7.tgz ...
Starting to download memcache-2.2.7.tgz (36,459 bytes)
..........done: 36,459 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version: 20151012
Zend Module Api No: 20151012
Zend Extension Api No: 320151012
Enable memcache session handler support? [yes] : yes
building in /tmp/pear-build-rootQ9u5WP/memcache-2.2.7
running: /tmp/memcache/configure --with-php-config=/opt/plesk/php/7.0/bin/php-config --enable-memcache-session=yes
checking for grep that handles long lines and -e... /bin/grep
...
config.status: executing libtool commands
running: make
/bin/sh /tmp/pear-build-rootQ9u5WP/memcache-2.2.7/libtool --mode=compile cc -I/opt/plesk/php/7.0/include/php -I. -I/tmp/memcache -DPHP_ATOM_INC -I/tmp/pear-build-rootQ9u5WP/memcache-2.2.7/include -I/tmp/pear-build-rootQ9u5WP/m
emcache-2.2.7/main -I/tmp/memcache -I/opt/plesk/php/7.0/include/php -I/opt/plesk/php/7.0/include/php/main -I/opt/plesk/php/7.0/include/php/TSRM -I/opt/plesk/php/7.0/include/php/Zend -I/opt/plesk/php/7.0/include/php/ext -I/opt/
plesk/php/7.0/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/memcache/memcache.c -o memcache.lo
libtool: compile: cc -I/opt/plesk/php/7.0/include/php -I. -I/tmp/memcache -DPHP_ATOM_INC -I/tmp/pear-build-rootQ9u5WP/memcache-2.2.7/include -I/tmp/pear-build-rootQ9u5WP/memcache-2.2.7/main -I/tmp/memcache -I/opt/plesk/php/7.
0/include/php -I/opt/plesk/php/7.0/include/php/main -I/opt/plesk/php/7.0/include/php/TSRM -I/opt/plesk/php/7.0/include/php/Zend -I/opt/plesk/php/7.0/include/php/ext -I/opt/plesk/php/7.0/include/php/ext/date/lib -DHAVE_CONFIG_H
-g -O2 -c /tmp/memcache/memcache.c -fPIC -DPIC -o .libs/memcache.o
/tmp/memcache/memcache.c:40:40: error: ext/standard/php_smart_str.h: No such file or directory
In file included from /tmp/memcache/memcache.c:42:
/tmp/memcache/php_memcache.h:38:47: error: ext/standard/php_smart_str_public.h: No such file or directory
..
..
/opt/plesk/php/7.0/include/php/Zend/zend_hash.h:146: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/tmp/memcache/memcache.c:2238: error: too many arguments to function ‘zend_hash_del’
/tmp/memcache/memcache.c:2241: error: request for member ‘type’ in something not a structure or union
/tmp/memcache/memcache.c:2242: error: request for member ‘ptr’ in something not a structure or union
/tmp/memcache/memcache.c:2245:124: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
/tmp/memcache/memcache.c:2245: warning: comparison between pointer and integer
/tmp/memcache/memcache.c:2255: error: ‘zend_ini_entry_def’ has no member named ‘ptr’
/tmp/memcache/memcache.c:2292:29: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
/tmp/memcache/memcache.c: In function ‘zif_memcache_get_version’:
/tmp/memcache/memcache.c:2292: error: ‘RETURN_STRING’ undeclared (first use in this function)
make: *** [memcache.lo] Error 1
ERROR: `make' failed

i have module memcached install
but can't use memcache ?

/opt/plesk/php/7.0/bin/php -v
PHP 7.0.7 (cli) (built: May 27 2016 10:46:36) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
 
Hi WSNHosting,

are you aware, that the PECL memcache package was released "2012-09-22" and seems unmaintained since "2013-04-07" ( <= the latest beta - release) ?
The package hasn't been ported to PHP 7 and needs to be rewritten.
 
Back
Top