|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61832 error when make
Submitted: 2012-04-24 09:11 UTC Modified: 2021-03-25 16:47 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sevchenko_hs at hotmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.10 OS: CentOS 6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 18 = ?
Subscribe to this entry?

 [2012-04-24 09:11 UTC] sevchenko_hs at hotmail dot com
when I build PHP 5.3.10 source with memcache extension, throw an error

/usr/local/src/php-5.3.10/ext/memcache/memcache_session.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ps_mod_memcache’

and in the same environment, I build PHP 5.3.8 with the memcache-2.2.6, it's all OK

so I read the source, I found in 5.3.10, there is no define HAVE_MEMCACHE_SESSION, which I found in php-5.3.8/main/php_config.h, but not in any file of php-5.3.10

I guess php-5.3.10's configure file may have a mistake:
when use the parameter: --enable-memcache
not write 
to the php_config.h

Test script:
tar zxf php-5.3.10.tar.gz

tar zxf memcache-2.2.6.tgz
mv memcache-2.2.6 php-5.3.10/ext/memcache
tar zxf APC-3.1.9.tgz
mv APC-3.1.9 php-5.3.10/ext/apc

cd php-5.3.10
rm -f configure
PHP_AUTOCONF=/usr/bin/autoconf-2.13 ./buildconf --force
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-libdir=lib64 --with-jpeg-dir --with-png-dir --with-gd --with-freetype-dir --enable-mbstring --with-zlib --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gettext --with-imap=/usr/local/src/imap-2007f --with-imap-ssl --with-curl --with-pear --with-mcrypt --with-openssl --with-ldap --with-regex --enable-soap --with-snmp=/usr --enable-gd-native-ttf --enable-mysqlnd --enable-apc --enable-memcache --enable-sockets --enable-fpm


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-05 13:46 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: hradtke
 [2017-10-24 06:59 UTC]
-Status: Assigned +Status: Open -Assigned To: hradtke +Assigned To:
 [2021-03-25 16:47 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:47 UTC]
The official bug tracker for PECL/memcache is now at

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Jun 20 12:01:23 2021 UTC