php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71666 pecl install memcache fails to compile
Submitted: 2016-02-25 22:42 UTC Modified: 2016-02-29 01:29 UTC
From: kspen72 at gmail dot com Assigned:
Status: Duplicate Package: memcache (PECL)
PHP Version: 7.0.3 OS: Debian 8 (Jessie)
Private report: No CVE-ID: None
 [2016-02-25 22:42 UTC] kspen72 at gmail dot com
Description:
------------
Trying to compile memcache-2.2.7 manually or via pecl install fails:

When compiling manually, did: phpize ; ./configure --with-php-config=/usr/local/bin/php-config ; make

When using pecl, did: pecl install memcache

Same error either way.

mkdir .libs
 cc -I/usr/local/include/php -I. -I/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/include -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/main -I/tmp/pear/temp/memcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/memcache/memcache.c  -fPIC -DPIC -o .libs/memcache.o
In file included from /usr/local/include/php/ext/standard/php_smart_str.h:24:0,
                 from /tmp/pear/temp/memcache/memcache.c:40:
/usr/local/include/php/ext/standard/php_smart_str_public.h:30:3: error: conflicting types for ‘smart_str’
 } smart_str;


Actual result:
--------------
creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/libtool --mode=compile cc -I/usr/local/include/php -I. -I/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/include -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/main -I/tmp/pear/temp/memcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/memcache/memcache.c -o memcache.lo
mkdir .libs
 cc -I/usr/local/include/php -I. -I/tmp/pear/temp/memcache -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/include -I/tmp/pear/temp/pear-build-root5tF8a0/memcache-2.2.7/main -I/tmp/pear/temp/memcache -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/memcache/memcache.c  -fPIC -DPIC -o .libs/memcache.o
In file included from /usr/local/include/php/ext/standard/php_smart_str.h:24:0,
                 from /tmp/pear/temp/memcache/memcache.c:40:
/usr/local/include/php/ext/standard/php_smart_str_public.h:30:3: error: conflicting types for ‘smart_str’
 } smart_str;
   ^
In file included from /usr/local/include/php/ext/standard/url_scanner_ex.h:34:0,
                 from /usr/local/include/php/ext/standard/basic_functions.h:35,
                 from /usr/local/include/php/ext/standard/php_var.h:24,
                 from /tmp/pear/temp/memcache/memcache.c:39:
/usr/local/include/php/Zend/zend_smart_str_public.h:25:3: note: previous declaration of ‘smart_str’ was here
 } smart_str;
   ^
/tmp/pear/temp/memcache/memcache.c: In function ‘OnUpdateChunkSize’:
/tmp/pear/temp/memcache/memcache.c:138:16: warning: passing argument 1 of ‘strtol’ from incompatible pointer type
  lval = strtol(new_value, NULL, 10);
                ^
In file included from /usr/local/include/php/main/../main/php_config.h:2480:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/stdlib.h:183:17: note: expected ‘const char * __restrict__’ but argument is of type ‘struct zend_string *’
 extern long int strtol (const char *__restrict __nptr,
                 ^
/tmp/pear/temp/memcache/memcache.c:144:40: error: ‘new_value_length’ undeclared (first use in this function)
  return OnUpdateLong(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
                                        ^
/tmp/pear/temp/memcache/memcache.c:144:40: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/memcache/memcache.c: In function ‘OnUpdateFailoverAttempts’:
/tmp/pear/temp/memcache/memcache.c:152:16: warning: passing argument 1 of ‘strtol’ from incompatible pointer type
  lval = strtol(new_value, NULL, 10);
                ^
In file included from /usr/local/include/php/main/../main/php_config.h:2480:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/stdlib.h:183:17: note: expected ‘const char * __restrict__’ but argument is of type ‘struct zend_string *’
 extern long int strtol (const char *__restrict __nptr,
                 ^
/tmp/pear/temp/memcache/memcache.c:158:40: error: ‘new_value_length’ undeclared (first use in this function)
  return OnUpdateLong(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
                                        ^
/tmp/pear/temp/memcache/memcache.c: In function ‘OnUpdateHashStrategy’:
/tmp/pear/temp/memcache/memcache.c:164:18: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type
  if (!strcasecmp(new_value, "standard")) {
                  ^
In file included from /usr/local/include/php/main/../main/php_config.h:2496:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/string.h:534:12: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
 extern int strcasecmp (const char *__s1, const char *__s2)
            ^
/tmp/pear/temp/memcache/memcache.c:167:23: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type
  else if (!strcasecmp(new_value, "consistent")) {
                       ^
In file included from /usr/local/include/php/main/../main/php_config.h:2496:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/string.h:534:12: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
 extern int strcasecmp (const char *__s1, const char *__s2)
            ^
/tmp/pear/temp/memcache/memcache.c: In function ‘OnUpdateHashFunction’:
/tmp/pear/temp/memcache/memcache.c:181:18: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type
  if (!strcasecmp(new_value, "crc32")) {
                  ^
In file included from /usr/local/include/php/main/../main/php_config.h:2496:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/string.h:534:12: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
 extern int strcasecmp (const char *__s1, const char *__s2)
            ^
/tmp/pear/temp/memcache/memcache.c:184:23: warning: passing argument 1 of ‘strcasecmp’ from incompatible pointer type
  else if (!strcasecmp(new_value, "fnv")) {
                       ^
In file included from /usr/local/include/php/main/../main/php_config.h:2496:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/string.h:534:12: note: expected ‘const char *’ but argument is of type ‘struct zend_string *’
 extern int strcasecmp (const char *__s1, const char *__s2)
            ^
/tmp/pear/temp/memcache/memcache.c: In function ‘OnUpdateDefaultTimeout’:
/tmp/pear/temp/memcache/memcache.c:200:16: warning: passing argument 1 of ‘strtol’ from incompatible pointer type
  lval = strtol(new_value, NULL, 10);
                ^
In file included from /usr/local/include/php/main/../main/php_config.h:2480:0,
                 from /usr/local/include/php/Zend/zend_config.h:1,
                 from /usr/local/include/php/Zend/zend_portability.h:48,
                 from /usr/local/include/php/Zend/zend_types.h:27,
                 from /usr/local/include/php/Zend/zend.h:31,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/include/stdlib.h:183:17: note: expected ‘const char * __restrict__’ but argument is of type ‘struct zend_string *’
 extern long int strtol (const char *__restrict __nptr,
                 ^
In file included from /usr/local/include/php/main/php_ini.h:24:0,
                 from /usr/local/include/php/main/fopen_wrappers.h:26,
                 from /usr/local/include/php/main/php.h:396,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/tmp/pear/temp/memcache/memcache.c: At top level:
/tmp/pear/temp/memcache/memcache.c:50:22: error: ‘OnUpdateInt’ undeclared here (not in a function)
 #define OnUpdateLong OnUpdateInt
                      ^
/usr/local/include/php/Zend/zend_ini.h:100:10: note: in definition of macro ‘ZEND_INI_ENTRY3_EX’
  { name, on_modify, arg1, arg2, arg3, default_value, displayer, modifiable, sizeof(name)-1, sizeof(default_value)-1 },
          ^
/usr/local/include/php/Zend/zend_ini.h:109:2: note: in expansion of macro ‘ZEND_INI_ENTRY2_EX’
  ZEND_INI_ENTRY2_EX(name, default_value, modifiable, on_modify, arg1, arg2, NULL)
  ^
/usr/local/include/php/Zend/zend_ini.h:125:2: note: in expansion of macro ‘ZEND_INI_ENTRY2’
  ZEND_INI_ENTRY2(name, default_value, modifiable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id)
  ^
/usr/local/include/php/main/php_ini.h:68:28: note: in expansion of macro ‘STD_ZEND_INI_ENTRY’
 #define STD_PHP_INI_ENTRY  STD_ZEND_INI_ENTRY
                            ^
/tmp/pear/temp/memcache/memcache.c:212:66: note: in expansion of macro ‘OnUpdateLong’
  STD_PHP_INI_ENTRY("memcache.allow_failover", "1",  PHP_INI_ALL, OnUpdateLong,  allow_failover, zend_memcache_globals, memcache_globals)
                                                                  ^
/tmp/pear/temp/memcache/memcache.c:223:33: error: unknown type name ‘zend_rsrc_list_entry’
 static void _mmc_pool_list_dtor(zend_rsrc_list_entry * TSRMLS_DC);
                                 ^
/tmp/pear/temp/memcache/memcache.c:224:36: error: unknown type name ‘zend_rsrc_list_entry’
 static void _mmc_pserver_list_dtor(zend_rsrc_list_entry * TSRMLS_DC);
                                    ^
/tmp/pear/temp/memcache/memcache.c: In function ‘zm_startup_memcache’:
/tmp/pear/temp/memcache/memcache.c:274:55: error: ‘_mmc_pool_list_dtor’ undeclared (first use in this function)
  le_memcache_pool = zend_register_list_destructors_ex(_mmc_pool_list_dtor, NULL, "memcache connection", module_number);
                                                       ^
/tmp/pear/temp/memcache/memcache.c:274:55: warning: passing argument 1 of ‘zend_register_list_destructors_ex’ from incompatible pointer type
In file included from /usr/local/include/php/Zend/zend_API.h:28:0,
                 from /usr/local/include/php/main/php.h:39,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_list.h:44:14: note: expected ‘rsrc_dtor_func_t’ but argument is of type ‘const struct zend_ini_entry_def *’
 ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
              ^
/tmp/pear/temp/memcache/memcache.c:275:57: error: ‘_mmc_pserver_list_dtor’ undeclared (first use in this function)
  le_pmemcache = zend_register_list_destructors_ex(NULL, _mmc_pserver_list_dtor, "persistent memcache connection", module_number);
                                                         ^
/tmp/pear/temp/memcache/memcache.c:275:57: warning: passing argument 2 of ‘zend_register_list_destructors_ex’ from incompatible pointer type
In file included from /usr/local/include/php/Zend/zend_API.h:28:0,
                 from /usr/local/include/php/main/php.h:39,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_list.h:44:14: note: expected ‘rsrc_dtor_func_t’ but argument is of type ‘const struct zend_ini_entry_def *’
 ZEND_API int zend_register_list_destructors_ex(rsrc_dtor_func_t ld, rsrc_dtor_func_t pld, const char *type_name, int module_number);
              ^
/tmp/pear/temp/memcache/memcache.c: At top level:
/tmp/pear/temp/memcache/memcache.c:369:33: error: unknown type name ‘zend_rsrc_list_entry’
 static void _mmc_pool_list_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
                                 ^
/tmp/pear/temp/memcache/memcache.c:375:36: error: unknown type name ‘zend_rsrc_list_entry’
 static void _mmc_pserver_list_dtor(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{ */
                                    ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_server_callback_dtor’:
/tmp/pear/temp/memcache/memcache.c:412:24: warning: passing argument 1 of ‘zend_hash_index_find’ makes pointer from integer without a cast
   zend_hash_index_find(Z_ARRVAL_PP(callback), 0, (void **)&this_obj) == SUCCESS &&
                        ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:156:30: note: expected ‘const struct HashTable *’ but argument is of type ‘int’
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/pear/temp/memcache/memcache.c:412:3: error: too many arguments to function ‘zend_hash_index_find’
   zend_hash_index_find(Z_ARRVAL_PP(callback), 0, (void **)&this_obj) == SUCCESS &&
   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:156:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:414:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(this_obj);
   ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:416:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor(callback);
  ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_server_callback_ctor’:
/tmp/pear/temp/memcache/memcache.c:427:24: warning: passing argument 1 of ‘zend_hash_index_find’ makes pointer from integer without a cast
   zend_hash_index_find(Z_ARRVAL_PP(callback), 0, (void **)&this_obj) == SUCCESS &&
                        ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:156:30: note: expected ‘const struct HashTable *’ but argument is of type ‘int’
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/pear/temp/memcache/memcache.c:427:3: error: too many arguments to function ‘zend_hash_index_find’
   zend_hash_index_find(Z_ARRVAL_PP(callback), 0, (void **)&this_obj) == SUCCESS &&
   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:156:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/pear/temp/memcache/memcache.c:429:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type
   zval_add_ref(this_obj);
                ^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_variables.h:141:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/pear/temp/memcache/memcache.c:431:15: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type
  zval_add_ref(callback);
               ^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_variables.h:141:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_get_pool’:
/tmp/pear/temp/memcache/memcache.c:898:67: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
  if (Z_TYPE_P(id) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(id), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
                                                                   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:898:35: error: too many arguments to function ‘zend_hash_find’
  if (Z_TYPE_P(id) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(id), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
                                   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:898:126: warning: comparison between pointer and integer
  if (Z_TYPE_P(id) != IS_OBJECT || zend_hash_find(Z_OBJPROP_P(id), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
                                                                                                                              ^
/tmp/pear/temp/memcache/memcache.c:903:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  *pool = (mmc_pool_t *) zend_list_find(Z_LVAL_PP(connection), &resource_type);
          ^
In file included from /usr/local/include/php/main/php_streams.h:471:0,
                 from /usr/local/include/php/main/php.h:394,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/tmp/pear/temp/memcache/memcache.c: In function ‘_mmc_open’:
/tmp/pear/temp/memcache/memcache.c:945:14: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
              ENFORCE_SAFE_MODE | REPORT_ERRORS,
              ^
/usr/local/include/php/main/streams/php_stream_transport.h:58:42: note: in definition of macro ‘php_stream_xport_create’
  _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC)
                                          ^
/tmp/pear/temp/memcache/memcache.c:945:32: error: invalid operands to binary | (have ‘const struct zend_ini_entry_def *’ and ‘int’)
              ENFORCE_SAFE_MODE | REPORT_ERRORS,
                                ^
/usr/local/include/php/main/streams/php_stream_transport.h:58:42: note: in definition of macro ‘php_stream_xport_create’
  _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC)
                                          ^
/tmp/pear/temp/memcache/memcache.c:945:14: warning: passing argument 3 of ‘_php_stream_xport_create’ makes integer from pointer without a cast
              ENFORCE_SAFE_MODE | REPORT_ERRORS,
              ^
/usr/local/include/php/main/streams/php_stream_transport.h:58:42: note: in definition of macro ‘php_stream_xport_create’
  _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC)
                                          ^
/usr/local/include/php/main/streams/php_stream_transport.h:49:20: note: expected ‘int’ but argument is of type ‘const struct zend_ini_entry_def *’
 PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, int options,
                    ^
/tmp/pear/temp/memcache/memcache.c:947:35: warning: passing argument 8 of ‘_php_stream_xport_create’ from incompatible pointer type
              hash_key, &tv, NULL, &errstr, &err);
                                   ^
/usr/local/include/php/main/streams/php_stream_transport.h:58:91: note: in definition of macro ‘php_stream_xport_create’
  _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC)
                                                                                           ^
/usr/local/include/php/main/streams/php_stream_transport.h:49:20: note: expected ‘struct zend_string **’ but argument is of type ‘char **’
 PHPAPI php_stream *_php_stream_xport_create(const char *name, size_t namelen, int options,
                    ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_server_deactivate’:
/tmp/pear/temp/memcache/memcache.c:1081:33: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
   ZVAL_STRING(host, mmc->host, 1);
                                 ^
/tmp/pear/temp/memcache/memcache.c:1081:3: error: ‘ZVAL_STRING’ undeclared (first use in this function)
   ZVAL_STRING(host, mmc->host, 1);
   ^
/tmp/pear/temp/memcache/memcache.c:1085:36: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
    ZVAL_STRING(error, mmc->error, 1);
                                    ^
/tmp/pear/temp/memcache/memcache.c:1092:74: warning: passing argument 4 of ‘call_user_function_ex’ from incompatible pointer type
   call_user_function_ex(EG(function_table), NULL, mmc->failure_callback, &retval, 5, params, 0, NULL TSRMLS_CC);
                                                                          ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:472:14: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API int call_user_function_ex(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation, zend_array *symbol_table);
              ^
/tmp/pear/temp/memcache/memcache.c:1092:86: warning: passing argument 6 of ‘call_user_function_ex’ from incompatible pointer type
   call_user_function_ex(EG(function_table), NULL, mmc->failure_callback, &retval, 5, params, 0, NULL TSRMLS_CC);
                                                                                      ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:472:14: note: expected ‘struct zval *’ but argument is of type ‘struct zval ***’
 ZEND_API int call_user_function_ex(HashTable *function_table, zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation, zend_array *symbol_table);
              ^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1094:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(&host);
   ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1095:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(&tcp_port); zval_ptr_dtor(&udp_port);
   ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1095:29: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(&tcp_port); zval_ptr_dtor(&udp_port);
                             ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1096:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(&error); zval_ptr_dtor(&errnum);
   ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1096:26: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor(&error); zval_ptr_dtor(&errnum);
                          ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1099:4: note: in expansion of macro ‘zval_ptr_dtor’
    zval_ptr_dtor(&retval);
    ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_str_left’:
/tmp/pear/temp/memcache/memcache.c:1160:8: warning: assignment discards ‘const’ qualifier from pointer target type
  found = php_memnstr(haystack, needle, needle_len, haystack + haystack_len);
        ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_postprocess_value’:
/tmp/pear/temp/memcache/memcache.c:1260:27: warning: passing argument 1 of ‘php_var_unserialize’ from incompatible pointer type
  if (!php_var_unserialize(return_value, (const unsigned char **)&value_tmp, (const unsigned char *)(value_tmp + value_len), &var_hash TSRMLS_CC)) {
                           ^
In file included from /tmp/pear/temp/memcache/memcache.c:39:0:
/usr/local/include/php/ext/standard/php_var.h:57:12: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 PHPAPI int php_var_unserialize(zval *rval, const unsigned char **p, const unsigned char *max, php_unserialize_data_t *var_hash);
            ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_exec_retrieval_cmd’:
/tmp/pear/temp/memcache/memcache.c:1304:52: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
     ZVAL_STRINGL(*return_value, value, value_len, 0);
                                                    ^
/tmp/pear/temp/memcache/memcache.c:1304:5: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
     ZVAL_STRINGL(*return_value, value, value_len, 0);
     ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_exec_retrieval_cmd_multi’:
/tmp/pear/temp/memcache/memcache.c:1348:58: warning: passing argument 2 of ‘zend_hash_get_current_data_ex’ from incompatible pointer type
   while (zend_hash_get_current_data_ex(Z_ARRVAL_P(keys), (void **)&zkey, &pos) == SUCCESS) {
                                                          ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:171:30: note: expected ‘HashPosition *’ but argument is of type ‘void **’
 ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
                              ^
/tmp/pear/temp/memcache/memcache.c:1348:10: error: too many arguments to function ‘zend_hash_get_current_data_ex’
   while (zend_hash_get_current_data_ex(Z_ARRVAL_P(keys), (void **)&zkey, &pos) == SUCCESS) {
          ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:171:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_get_current_data_ex(HashTable *ht, HashPosition *pos);
                              ^
/tmp/pear/temp/memcache/memcache.c:1351:34: warning: passing argument 1 of ‘zend_hash_exists’ makes pointer from integer without a cast
     if ((!i || !zend_hash_exists(Z_ARRVAL_PP(return_value), key, key_len)) &&
                                  ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:159:34: note: expected ‘const struct HashTable *’ but argument is of type ‘int’
 ZEND_API zend_bool ZEND_FASTCALL zend_hash_exists(const HashTable *ht, zend_string *key);
                                  ^
/tmp/pear/temp/memcache/memcache.c:1351:61: warning: passing argument 2 of ‘zend_hash_exists’ from incompatible pointer type
     if ((!i || !zend_hash_exists(Z_ARRVAL_PP(return_value), key, key_len)) &&
                                                             ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:159:34: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zend_bool ZEND_FASTCALL zend_hash_exists(const HashTable *ht, zend_string *key);
                                  ^
/tmp/pear/temp/memcache/memcache.c:1351:17: error: too many arguments to function ‘zend_hash_exists’
     if ((!i || !zend_hash_exists(Z_ARRVAL_PP(return_value), key, key_len)) &&
                 ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:159:34: note: declared here
 ZEND_API zend_bool ZEND_FASTCALL zend_hash_exists(const HashTable *ht, zend_string *key);
                                  ^
/tmp/pear/temp/memcache/memcache.c:1384:47: error: macro "ZVAL_STRINGL" passed 4 arguments, but takes just 3
       ZVAL_STRINGL(result, value, value_len, 0);
                                               ^
/tmp/pear/temp/memcache/memcache.c:1384:7: error: ‘ZVAL_STRINGL’ undeclared (first use in this function)
       ZVAL_STRINGL(result, value, value_len, 0);
       ^
/tmp/pear/temp/memcache/memcache.c:1387:113: error: macro "zend_hash_add" passed 6 arguments, but takes just 3
       if (zend_hash_add(Z_ARRVAL_PP(return_value), result_key, result_key_len + 1, &result, sizeof(result), NULL) == SUCCESS) {
                                                                                                                 ^
/tmp/pear/temp/memcache/memcache.c:1387:11: error: ‘zend_hash_add’ undeclared (first use in this function)
       if (zend_hash_add(Z_ARRVAL_PP(return_value), result_key, result_key_len + 1, &result, sizeof(result), NULL) == SUCCESS) {
           ^
In file included from /usr/local/include/php/Zend/zend.h:39:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_variables.h:122:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/pear/temp/memcache/memcache.c:1391:8: note: in expansion of macro ‘zval_ptr_dtor’
        zval_ptr_dtor(&result);
        ^
/usr/local/include/php/Zend/zend_variables.h:112:15: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/pear/temp/memcache/memcache.c:1395:7: error: too many arguments to function ‘add_assoc_stringl_ex’
       add_assoc_stringl_ex(*return_value, result_key, result_key_len + 1, value, value_len, 0);
       ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:397:14: note: declared here
 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length);
              ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_stats_parse_stat’:
/tmp/pear/temp/memcache/memcache.c:1574:13: warning: assignment discards ‘const’ qualifier from pointer target type
  if ((space = php_memnstr(start, " ", 1, end)) == NULL) {
             ^
/tmp/pear/temp/memcache/memcache.c:1579:13: warning: assignment discards ‘const’ qualifier from pointer target type
  if ((colon = php_memnstr(start, ":", 1, space - 1)) != NULL) {
             ^
/tmp/pear/temp/memcache/memcache.c:1585:4: error: too many arguments to function ‘zend_hash_index_find’
    zend_hash_index_find(Z_ARRVAL_P(result), index, (void **) &elem) != FAILURE) ||
    ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:156:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/pear/temp/memcache/memcache.c:1585:69: warning: comparison between pointer and integer
    zend_hash_index_find(Z_ARRVAL_P(result), index, (void **) &elem) != FAILURE) ||
                                                                     ^
/tmp/pear/temp/memcache/memcache.c:1586:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
    zend_hash_find(Z_ARRVAL_P(result), key, colon - start + 1, (void **) &elem) != FAILURE) {
                                       ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:1586:4: error: too many arguments to function ‘zend_hash_find’
    zend_hash_find(Z_ARRVAL_P(result), key, colon - start + 1, (void **) &elem) != FAILURE) {
    ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:1586:80: warning: comparison between pointer and integer
    zend_hash_find(Z_ARRVAL_P(result), key, colon - start + 1, (void **) &elem) != FAILURE) {
                                                                                ^
/tmp/pear/temp/memcache/memcache.c:1601:2: error: too many arguments to function ‘add_assoc_stringl_ex’
  add_assoc_stringl_ex(result, key, space - start + 1, space + 1, end - space, 1);
  ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:397:14: note: declared here
 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length);
              ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_stats_parse_item’:
/tmp/pear/temp/memcache/memcache.c:1617:13: warning: assignment discards ‘const’ qualifier from pointer target type
  if ((space = php_memnstr(start, " ", 1, end)) == NULL) {
             ^
/tmp/pear/temp/memcache/memcache.c:1625:13: warning: assignment discards ‘const’ qualifier from pointer target type
  for (value = php_memnstr(space, "[", 1, end); value != NULL && value <= end; value = php_memnstr(value + 1, ";", 1, end)) {
             ^
/tmp/pear/temp/memcache/memcache.c:1625:85: warning: assignment discards ‘const’ qualifier from pointer target type
  for (value = php_memnstr(space, "[", 1, end); value != NULL && value <= end; value = php_memnstr(value + 1, ";", 1, end)) {
                                                                                     ^
/tmp/pear/temp/memcache/memcache.c:1630:34: warning: assignment discards ‘const’ qualifier from pointer target type
   if (value <= end && (value_end = php_memnstr(value, " ", 1, end)) != NULL && value_end <= end) {
                                  ^
/tmp/pear/temp/memcache/memcache.c:1631:4: error: too many arguments to function ‘add_next_index_stringl’
    add_next_index_stringl(element, value, value_end - value, 1);
    ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:433:14: note: declared here
 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
              ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_stats_parse_generic’:
/tmp/pear/temp/memcache/memcache.c:1654:14: warning: assignment discards ‘const’ qualifier from pointer target type
   if ((space = php_memnstr(start, " ", 1, end)) != NULL) {
              ^
/tmp/pear/temp/memcache/memcache.c:1656:4: error: too many arguments to function ‘add_assoc_stringl_ex’
    add_assoc_stringl_ex(result, key, space - start + 1, space + 1, end - space, 1);
    ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:397:14: note: declared here
 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length);
              ^
/tmp/pear/temp/memcache/memcache.c:1660:4: error: too many arguments to function ‘add_next_index_stringl’
    add_next_index_stringl(result, start, end - start, 1);
    ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_API.h:433:14: note: declared here
 ZEND_API int add_next_index_stringl(zval *arg, const char *str, size_t length);
              ^
/tmp/pear/temp/memcache/memcache.c: In function ‘php_mmc_store’:
/tmp/pear/temp/memcache/memcache.c:1825:8: error: ‘IS_BOOL’ undeclared (first use in this function)
   case IS_BOOL: {
        ^
/tmp/pear/temp/memcache/memcache.c:1850:22: warning: passing argument 1 of ‘php_var_serialize’ from incompatible pointer type
    php_var_serialize(&buf, &value_copy_ptr, &value_hash TSRMLS_CC);
                      ^
In file included from /tmp/pear/temp/memcache/memcache.c:39:0:
/usr/local/include/php/ext/standard/php_var.h:56:13: note: expected ‘struct smart_str *’ but argument is of type ‘struct smart_str *’
 PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *data);
             ^
/tmp/pear/temp/memcache/memcache.c:1850:28: warning: passing argument 2 of ‘php_var_serialize’ from incompatible pointer type
    php_var_serialize(&buf, &value_copy_ptr, &value_hash TSRMLS_CC);
                            ^
In file included from /tmp/pear/temp/memcache/memcache.c:39:0:
/usr/local/include/php/ext/standard/php_var.h:56:13: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
 PHPAPI void php_var_serialize(smart_str *buf, zval *struc, php_serialize_data_t *data);
             ^
/tmp/pear/temp/memcache/memcache.c: In function ‘php_mmc_connect’:
/tmp/pear/temp/memcache/memcache.c:1970:11: warning: assignment makes integer from pointer without a cast
   list_id = MEMCACHE_LIST_INSERT(pool, le_memcache_pool);
           ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/tmp/pear/temp/memcache/memcache.c:1971:53: warning: passing argument 4 of ‘add_property_resource_ex’ makes pointer from integer without a cast
   add_property_resource(return_value, "connection", list_id);
                                                     ^
/usr/local/include/php/Zend/zend_API.h:463:104: note: in definition of macro ‘add_property_resource’
 #define add_property_resource(__arg, __key, __r) add_property_resource_ex(__arg, __key, strlen(__key), __r)
                                                                                                        ^
/usr/local/include/php/Zend/zend_API.h:453:14: note: expected ‘struct zend_resource *’ but argument is of type ‘int’
 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
              ^
/tmp/pear/temp/memcache/memcache.c:1973:51: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
  else if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) != FAILURE) {
                                                   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:1973:11: error: too many arguments to function ‘zend_hash_find’
  else if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) != FAILURE) {
           ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:1973:110: warning: comparison between pointer and integer
  else if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) != FAILURE) {
                                                                                                              ^
/tmp/pear/temp/memcache/memcache.c:1974:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   pool = (mmc_pool_t *) zend_list_find(Z_LVAL_PP(connection), &resource_type);
          ^
/tmp/pear/temp/memcache/memcache.c:1987:11: warning: assignment makes integer from pointer without a cast
   list_id = MEMCACHE_LIST_INSERT(pool, le_memcache_pool);
           ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/tmp/pear/temp/memcache/memcache.c:1988:51: warning: passing argument 4 of ‘add_property_resource_ex’ makes pointer from integer without a cast
   add_property_resource(mmc_object, "connection", list_id);
                                                   ^
/usr/local/include/php/Zend/zend_API.h:463:104: note: in definition of macro ‘add_property_resource’
 #define add_property_resource(__arg, __key, __r) add_property_resource_ex(__arg, __key, strlen(__key), __r)
                                                                                                        ^
/usr/local/include/php/Zend/zend_API.h:453:14: note: expected ‘struct zend_resource *’ but argument is of type ‘int’
 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
              ^
/tmp/pear/temp/memcache/memcache.c: In function ‘zif_memcache_add_server’:
/tmp/pear/temp/memcache/memcache.c:2075:46: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
  if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
                                              ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:2075:6: error: too many arguments to function ‘zend_hash_find’
  if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
      ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:2075:105: warning: comparison between pointer and integer
  if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **) &connection) == FAILURE) {
                                                                                                         ^
/tmp/pear/temp/memcache/memcache.c:2077:11: warning: assignment makes integer from pointer without a cast
   list_id = MEMCACHE_LIST_INSERT(pool, le_memcache_pool);
           ^
In file included from /usr/local/include/php/main/php.h:39:0,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/tmp/pear/temp/memcache/memcache.c:2078:51: warning: passing argument 4 of ‘add_property_resource_ex’ makes pointer from integer without a cast
   add_property_resource(mmc_object, "connection", list_id);
                                                   ^
/usr/local/include/php/Zend/zend_API.h:463:104: note: in definition of macro ‘add_property_resource’
 #define add_property_resource(__arg, __key, __r) add_property_resource_ex(__arg, __key, strlen(__key), __r)
                                                                                                        ^
/usr/local/include/php/Zend/zend_API.h:453:14: note: expected ‘struct zend_resource *’ but argument is of type ‘int’
 ZEND_API int add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
              ^
/tmp/pear/temp/memcache/memcache.c:2081:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
   pool = (mmc_pool_t *) zend_list_find(Z_LVAL_PP(connection), &resource_type);
          ^
/tmp/pear/temp/memcache/memcache.c: In function ‘mmc_find_persistent’:
/tmp/pear/temp/memcache/memcache.c:2212:2: error: unknown type name ‘zend_rsrc_list_entry’
  zend_rsrc_list_entry *le;
  ^
/tmp/pear/temp/memcache/memcache.c:2219:43: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type
  if (zend_hash_find(&EG(persistent_list), hash_key, hash_key_len+1, (void **) &le) == FAILURE) {
                                           ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:2219:6: error: too many arguments to function ‘zend_hash_find’
  if (zend_hash_find(&EG(persistent_list), hash_key, hash_key_len+1, (void **) &le) == FAILURE) {
      ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:154:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/pear/temp/memcache/memcache.c:2219:84: warning: comparison between pointer and integer
  if (zend_hash_find(&EG(persistent_list), hash_key, hash_key_len+1, (void **) &le) == FAILURE) {
                                                                                    ^
/tmp/pear/temp/memcache/memcache.c:2220:3: error: unknown type name ‘zend_rsrc_list_entry’
   zend_rsrc_list_entry new_le;
   ^
/tmp/pear/temp/memcache/memcache.c:2224:9: error: request for member ‘type’ in something not a structure or union
   new_le.type = le_pmemcache;
         ^
/tmp/pear/temp/memcache/memcache.c:2225:9: error: request for member ‘ptr’ in something not a structure or union
   new_le.ptr  = mmc;
         ^
/tmp/pear/temp/memcache/memcache.c:2228:124: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
   if (zend_hash_update(&EG(persistent_list), hash_key, hash_key_len+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
                                                                                                                            ^
/tmp/pear/temp/memcache/memcache.c:2228:7: error: ‘zend_hash_update’ undeclared (first use in this function)
   if (zend_hash_update(&EG(persistent_list), hash_key, hash_key_len+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
       ^
/tmp/pear/temp/memcache/memcache.c:2228:126: warning: comparison between pointer and integer
   if (zend_hash_update(&EG(persistent_list), hash_key, hash_key_len+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
                                                                                                                              ^
/tmp/pear/temp/memcache/memcache.c:2235:13: error: request for member ‘type’ in something not a structure or union
  else if (le->type != le_pmemcache || le->ptr == NULL) {
             ^
/tmp/pear/temp/memcache/memcache.c:2235:20: warning: comparison between pointer and integer
  else if (le->type != le_pmemcache || le->ptr == NULL) {
                    ^
/tmp/pear/temp/memcache/memcache.c:2235:41: error: request for member ‘ptr’ in something not a structure or union
  else if (le->type != le_pmemcache || le->ptr == NULL) {
                                         ^
/tmp/pear/temp/memcache/memcache.c:2236:3: error: unknown type name ‘zend_rsrc_list_entry’
   zend_rsrc_list_entry new_le;
   ^
/tmp/pear/temp/memcache/memcache.c:2238:39: warning: passing argument 2 of ‘zend_hash_del’ from incompatible pointer type
   zend_hash_del(&EG(persistent_list), hash_key, hash_key_len+1);
                                       ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:146:28: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
 ZEND_API int ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
                            ^
/tmp/pear/temp/memcache/memcache.c:2238:3: error: too many arguments to function ‘zend_hash_del’
   zend_hash_del(&EG(persistent_list), hash_key, hash_key_len+1);
   ^
In file included from /usr/local/include/php/Zend/zend.h:36:0,
                 from /usr/local/include/php/main/php.h:35,
                 from /tmp/pear/temp/memcache/memcache.c:26:
/usr/local/include/php/Zend/zend_hash.h:146:28: note: declared here
 ZEND_API int ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key);
                            ^
/tmp/pear/temp/memcache/memcache.c:2241:9: error: request for member ‘type’ in something not a structure or union
   new_le.type = le_pmemcache;
         ^
/tmp/pear/temp/memcache/memcache.c:2242:9: error: request for member ‘ptr’ in something not a structure or union
   new_le.ptr  = mmc;
         ^
/tmp/pear/temp/memcache/memcache.c:2245:124: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
   if (zend_hash_update(&EG(persistent_list), hash_key, hash_key_len+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
                                                                                                                            ^
/tmp/pear/temp/memcache/memcache.c:2245:126: warning: comparison between pointer and integer
   if (zend_hash_update(&EG(persistent_list), hash_key, hash_key_len+1, (void *) &new_le, sizeof(zend_rsrc_list_entry), NULL) == FAILURE) {
                                                                                                                              ^
/tmp/pear/temp/memcache/memcache.c:2255:20: error: request for member ‘ptr’ in something not a structure or union
   mmc = (mmc_t *)le->ptr;
                    ^
/tmp/pear/temp/memcache/memcache.c: In function ‘zif_memcache_get_version’:
/tmp/pear/temp/memcache/memcache.c:2292:29: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
     RETURN_STRING(version, 0);
                             ^
/tmp/pear/temp/memcache/memcache.c:2292:5: error: ‘RETURN_STRING’ undeclared (first use in this function)
     RETURN_STRING(version, 0);
     ^
Makefile:193: recipe for target 'memcache.lo' failed
make: *** [memcache.lo] Error 1
ERROR: `make' failed
root@host#


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-02-29 01:29 UTC] pajoye@php.net
-Status: Open +Status: Duplicate
 [2016-02-29 01:29 UTC] pajoye@php.net
Thanks for your report.

PHP7 support is coming.

We already have an issue to track this :)
 [2016-03-15 10:38 UTC] dev at k2view dot com
I got the same issue on CentOS compiling 64bit.
I have php 7.04

Any estimation on this?
 [2016-06-23 10:33 UTC] janghorban_mostafa at yahoo dot com
I got the same issue on CentOS compiling 64bit.
i have 7.0.7
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 12:01:28 2024 UTC