php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75333 cannot compile extension
Submitted: 2017-10-07 20:02 UTC Modified: 2017-10-30 07:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: semnanweb at gmail dot com Assigned:
Status: Suspended Package: newt (PECL)
PHP Version: 7.1Git-2017-10-07 (snap) OS: ubuntu 16.04
Private report: No CVE-ID: None
 [2017-10-07 20:02 UTC] semnanweb at gmail dot com
Description:
------------
/bin/bash /tmp/newt-1.2.9/libtool --mode=compile cc  -I. -I/tmp/newt-1.2.9 -DPHP_ATOM_INC -I/tmp/newt-1.2.9/include -I/tmp/newt-1.2.9/main -I/tmp/newt-1.2.9 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/newt-1.2.9/newt.c -o newt.lo 
libtool: compile:  cc -I. -I/tmp/newt-1.2.9 -DPHP_ATOM_INC -I/tmp/newt-1.2.9/include -I/tmp/newt-1.2.9/main -I/tmp/newt-1.2.9 -I/usr/include/php/20160303 -I/usr/include/php/20160303/main -I/usr/include/php/20160303/TSRM -I/usr/include/php/20160303/Zend -I/usr/include/php/20160303/ext -I/usr/include/php/20160303/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/newt-1.2.9/newt.c  -fPIC -DPIC -o .libs/newt.o
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘php_newt_free_cb’:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:335:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor (&cb->callback);
   ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:336:3: note: in expansion of macro ‘zval_ptr_dtor’
   zval_ptr_dtor (&cb->data);
   ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/newt-1.2.9/newt.c: In function ‘php_newt_fetch_resource’:
/tmp/newt-1.2.9/newt.c:346:2: error: unknown type name ‘zend_rsrc_list_entry’
  zend_rsrc_list_entry *le;
  ^
/tmp/newt-1.2.9/newt.c:354:4: warning: implicit declaration of function ‘MAKE_STD_ZVAL’ [-Wimplicit-function-declaration]
    MAKE_STD_ZVAL (rsrc);
    ^
/tmp/newt-1.2.9/newt.c:358:69: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
  while (zend_hash_get_current_data (&EG(regular_list), (void **) &le) == SUCCESS) {
                                                                     ^
/tmp/newt-1.2.9/newt.c:358:9: error: ‘zend_hash_get_current_data’ undeclared (first use in this function)
  while (zend_hash_get_current_data (&EG(regular_list), (void **) &le) == SUCCESS) {
         ^
/tmp/newt-1.2.9/newt.c:358:9: note: each undeclared identifier is reported only once for each function it appears in
/tmp/newt-1.2.9/newt.c:359:51: warning: passing argument 2 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL);
                                                   ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:195:30: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^
/tmp/newt-1.2.9/newt.c:359:57: warning: passing argument 3 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL);
                                                         ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:195:30: note: expected ‘zend_ulong * {aka long unsigned int *}’ but argument is of type ‘uint * {aka unsigned int *}’
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^
/tmp/newt-1.2.9/newt.c:359:67: warning: passing argument 4 of ‘zend_hash_get_current_key_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL);
                                                                   ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:195:30: note: expected ‘HashPosition * {aka unsigned int *}’ but argument is of type ‘ulong * {aka long unsigned int *}’
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^
/tmp/newt-1.2.9/newt.c:359:3: error: too many arguments to function ‘zend_hash_get_current_key_ex’
   zend_hash_get_current_key_ex(&EG(regular_list), &key, &key_len, &rsrc_id, 0, NULL);
   ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:195:30: note: declared here
 ZEND_API int   ZEND_FASTCALL zend_hash_get_current_key_ex(const HashTable *ht, zend_string **str_index, zend_ulong *num_index, HashPosition *pos);
                              ^
/tmp/newt-1.2.9/newt.c:360:8: error: request for member ‘type’ in something not a structure or union
   if(le->type == le_type && le->ptr == data) {
        ^
/tmp/newt-1.2.9/newt.c:360:31: error: request for member ‘ptr’ in something not a structure or union
   if(le->type == le_type && le->ptr == data) {
                               ^
/tmp/newt-1.2.9/newt.c:362:20: error: lvalue required as left operand of assignment
    Z_TYPE_P (rsrc) = IS_RESOURCE;
                    ^
/tmp/newt-1.2.9/newt.c: In function ‘newt_comp_callback_wrapper’:
/tmp/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
                                       ^
/tmp/newt-1.2.9/newt.c:617:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:418:3: error: too many arguments to function ‘zend_hash_find’
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
   ^
/tmp/newt-1.2.9/newt.c:617:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c:626:77: warning: passing argument 5 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 2, args TSRMLS_CC) == SUCCESS) {
                                                                             ^
/usr/include/php/20160303/Zend/zend_API.h:479:73: note: in definition of macro ‘call_user_function’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1)
                                                                         ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:631:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[0]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/newt-1.2.9/newt.c: In function ‘newt_entry_filter_callback_wrapper’:
/tmp/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
                                       ^
/tmp/newt-1.2.9/newt.c:646:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:418:3: error: too many arguments to function ‘zend_hash_find’
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
   ^
/tmp/newt-1.2.9/newt.c:646:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:658:38: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
   ZVAL_STRING (args[2], (char*)&ch, 1);
                                      ^
/tmp/newt-1.2.9/newt.c:658:3: error: ‘ZVAL_STRING’ undeclared (first use in this function)
   ZVAL_STRING (args[2], (char*)&ch, 1);
   ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c:667:77: warning: passing argument 5 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 4, args TSRMLS_CC) == FAILURE ) {
                                                                             ^
/usr/include/php/20160303/Zend/zend_API.h:479:73: note: in definition of macro ‘call_user_function’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1)
                                                                         ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:678:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[0]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:679:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[2]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:680:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[3]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/newt-1.2.9/newt.c: In function ‘newt_suspend_callback_wrapper’:
/tmp/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
                                       ^
/tmp/newt-1.2.9/newt.c:697:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:418:3: error: too many arguments to function ‘zend_hash_find’
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
   ^
/tmp/newt-1.2.9/newt.c:697:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK (cb_key, cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c:702:77: warning: passing argument 5 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 1, args TSRMLS_CC) == SUCCESS) {
                                                                             ^
/usr/include/php/20160303/Zend/zend_API.h:479:73: note: in definition of macro ‘call_user_function’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1)
                                                                         ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
/tmp/newt-1.2.9/newt.c: In function ‘newt_help_callback_wrapper’:
/tmp/newt-1.2.9/newt.c:418:39: warning: passing argument 2 of ‘zend_hash_find’ from incompatible pointer type [-Wincompatible-pointer-types]
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
                                       ^
/tmp/newt-1.2.9/newt.c:721:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK ("php_newt_help_cb_key", cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: expected ‘zend_string * {aka struct _zend_string *}’ but argument is of type ‘char *’
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:418:3: error: too many arguments to function ‘zend_hash_find’
   zend_hash_find (&NEWT_G(callbacks), (char *)key, strlen(key)+1, (void **)&cb_pnfc); \
   ^
/tmp/newt-1.2.9/newt.c:721:2: note: in expansion of macro ‘PHP_NEWT_FETCH_CALLBACK’
  PHP_NEWT_FETCH_CALLBACK ("php_newt_help_cb_key", cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:161:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
                              ^
/tmp/newt-1.2.9/newt.c:729:31: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
  ZVAL_STRING (args[1], help, 1);
                               ^
/tmp/newt-1.2.9/newt.c:729:2: error: ‘ZVAL_STRING’ undeclared (first use in this function)
  ZVAL_STRING (args[1], help, 1);
  ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c:731:77: warning: passing argument 5 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function(EG(function_table), NULL, cb->callback, &retval, 2, args TSRMLS_CC) == SUCCESS) {
                                                                             ^
/usr/include/php/20160303/Zend/zend_API.h:479:73: note: in definition of macro ‘call_user_function’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, 1)
                                                                         ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:737:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[0]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:738:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor (&args[1]);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
/tmp/newt-1.2.9/newt.c: In function ‘newt_call_php_function’:
/tmp/newt-1.2.9/newt.c:750:39: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
  ZVAL_STRING(z_func_name, func_name, 1);
                                       ^
/tmp/newt-1.2.9/newt.c:750:2: error: ‘ZVAL_STRING’ undeclared (first use in this function)
  ZVAL_STRING(z_func_name, func_name, 1);
  ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c:752:67: warning: passing argument 3 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function_ex(EG(function_table), NULL, z_func_name, ret_val, argc, args, 0, NULL TSRMLS_CC) == FAILURE) {
                                                                   ^
/usr/include/php/20160303/Zend/zend_API.h:481:48: note: in definition of macro ‘call_user_function_ex’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
                                                ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
/tmp/newt-1.2.9/newt.c:752:82: warning: passing argument 5 of ‘_call_user_function_ex’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (call_user_function_ex(EG(function_table), NULL, z_func_name, ret_val, argc, args, 0, NULL TSRMLS_CC) == FAILURE) {
                                                                                  ^
/usr/include/php/20160303/Zend/zend_API.h:481:73: note: in definition of macro ‘call_user_function_ex’
  _call_user_function_ex(object, function_name, retval_ptr, param_count, params, no_separation)
                                                                         ^
/usr/include/php/20160303/Zend/zend_API.h:476:14: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval *** {aka struct _zval_struct ***}’
 ZEND_API int _call_user_function_ex(zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], int no_separation);
              ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:110:48: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
                                                ^
/tmp/newt-1.2.9/newt.c:756:2: note: in expansion of macro ‘zval_ptr_dtor’
  zval_ptr_dtor(&z_func_name);
  ^
/usr/include/php/20160303/Zend/zend_variables.h:100:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void _zval_ptr_dtor(zval *zval_ptr ZEND_FILE_LINE_DC);
               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_set_suspend_callback’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:935:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL (&z_callback);
   ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_types.h:341:39: warning: passing argument 1 of ‘zval_get_type’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                       ^
/usr/include/php/20160303/Zend/zend_types.h:342:28: note: in expansion of macro ‘Z_TYPE’
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                            ^
/usr/include/php/20160303/Zend/zend_operators.h:378:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:936:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_types.h:331:38: note: expected ‘const zval * {aka const struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 static zend_always_inline zend_uchar zval_get_type(const zval* pz) {
                                      ^
/usr/include/php/20160303/Zend/zend_types.h:341:39: warning: passing argument 1 of ‘zval_get_type’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                       ^
/usr/include/php/20160303/Zend/zend_types.h:342:28: note: in expansion of macro ‘Z_TYPE’
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                            ^
/usr/include/php/20160303/Zend/zend_operators.h:284:35: note: in expansion of macro ‘Z_TYPE_P’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                   ^
/usr/include/php/20160303/Zend/zend_operators.h:379:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:936:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_types.h:331:38: note: expected ‘const zval * {aka const struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 static zend_always_inline zend_uchar zval_get_type(const zval* pz) {
                                      ^
In file included from /usr/include/php/20160303/Zend/zend.h:324:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_operators.h:284:83: warning: passing argument 1 of ‘_convert_to_string’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                                                                   ^
/usr/include/php/20160303/Zend/zend_operators.h:379:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:936:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_operators.h:253:29: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC);
                             ^
/tmp/newt-1.2.9/newt.c:939:39: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) {
                                       ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_API.h:316:20: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
 ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name);
                    ^
/tmp/newt-1.2.9/newt.c:954:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
  PHP_NEWT_STORE_CALLBACK (cb);
 ^
/tmp/newt-1.2.9/newt.c:412:3: error: ‘zend_hash_update’ undeclared (first use in this function)
   zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:954:2: note: in expansion of macro ‘PHP_NEWT_STORE_CALLBACK’
  PHP_NEWT_STORE_CALLBACK (cb);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_set_help_callback’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:975:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL (&z_callback);
   ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_types.h:341:39: warning: passing argument 1 of ‘zval_get_type’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                       ^
/usr/include/php/20160303/Zend/zend_types.h:342:28: note: in expansion of macro ‘Z_TYPE’
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                            ^
/usr/include/php/20160303/Zend/zend_operators.h:378:6: note: in expansion of macro ‘Z_TYPE_P’
  if (Z_TYPE_P(pzv)!=upper_type) {     \
      ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:976:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_types.h:331:38: note: expected ‘const zval * {aka const struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 static zend_always_inline zend_uchar zval_get_type(const zval* pz) {
                                      ^
/usr/include/php/20160303/Zend/zend_types.h:341:39: warning: passing argument 1 of ‘zval_get_type’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define Z_TYPE(zval)    zval_get_type(&(zval))
                                       ^
/usr/include/php/20160303/Zend/zend_types.h:342:28: note: in expansion of macro ‘Z_TYPE’
 #define Z_TYPE_P(zval_p)   Z_TYPE(*(zval_p))
                            ^
/usr/include/php/20160303/Zend/zend_operators.h:284:35: note: in expansion of macro ‘Z_TYPE_P’
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                   ^
/usr/include/php/20160303/Zend/zend_operators.h:379:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:976:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_types.h:331:38: note: expected ‘const zval * {aka const struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 static zend_always_inline zend_uchar zval_get_type(const zval* pz) {
                                      ^
In file included from /usr/include/php/20160303/Zend/zend.h:324:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_operators.h:284:83: warning: passing argument 1 of ‘_convert_to_string’ from incompatible pointer type [-Wincompatible-pointer-types]
 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op) ZEND_FILE_LINE_CC); }
                                                                                   ^
/usr/include/php/20160303/Zend/zend_operators.h:379:3: note: in expansion of macro ‘convert_to_string’
   convert_to_##lower_type(pzv);      \
   ^
/usr/include/php/20160303/Zend/zend_operators.h:420:35: note: in expansion of macro ‘convert_to_ex_master’
 #define convert_to_string_ex(pzv) convert_to_ex_master(pzv, string, IS_STRING)
                                   ^
/tmp/newt-1.2.9/newt.c:976:3: note: in expansion of macro ‘convert_to_string_ex’
   convert_to_string_ex (&z_callback);
   ^
/usr/include/php/20160303/Zend/zend_operators.h:253:29: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op ZEND_FILE_LINE_DC);
                             ^
/tmp/newt-1.2.9/newt.c:979:39: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type [-Wincompatible-pointer-types]
  if (!zend_is_callable(z_callback, 0, &cb->func_name TSRMLS_CC)) {
                                       ^
In file included from /usr/include/php/20160303/main/php.h:40:0,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_API.h:316:20: note: expected ‘zend_string ** {aka struct _zend_string **}’ but argument is of type ‘char **’
 ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, zend_string **callable_name);
                    ^
/tmp/newt-1.2.9/newt.c:991:1: error: macro "zend_hash_update" passed 6 arguments, but takes just 3
  PHP_NEWT_STORE_CALLBACK (cb);
 ^
/tmp/newt-1.2.9/newt.c:412:3: error: ‘zend_hash_update’ undeclared (first use in this function)
   zend_hash_update(&NEWT_G(callbacks), cb->key, strlen(cb->key)+1, (void *)&cb, sizeof(php_newt_cb *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:991:2: note: in expansion of macro ‘PHP_NEWT_STORE_CALLBACK’
  PHP_NEWT_STORE_CALLBACK (cb);
  ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_compact_button’:
/tmp/newt-1.2.9/newt.c:1111:2: warning: implicit declaration of function ‘ZEND_REGISTER_RESOURCE’ [-Wimplicit-function-declaration]
  ZEND_REGISTER_RESOURCE (return_value, button, le_newt_comp);
  ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_get_value’:
/tmp/newt-1.2.9/newt.c:1181:2: warning: implicit declaration of function ‘ZEND_FETCH_RESOURCE’ [-Wimplicit-function-declaration]
  ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp);
  ^
/tmp/newt-1.2.9/newt.c:1181:32: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp);
                                ^
/tmp/newt-1.2.9/newt.c:1185:28: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
  RETURN_STRING(ret_value, 1);
                            ^
/tmp/newt-1.2.9/newt.c:1185:2: error: ‘RETURN_STRING’ undeclared (first use in this function)
  RETURN_STRING(ret_value, 1);
  ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_set_value’:
/tmp/newt-1.2.9/newt.c:1208:32: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp);
                                ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_set_flags’:
/tmp/newt-1.2.9/newt.c:1227:32: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkbox, newtComponent, &z_checkbox, -1, le_newt_comp_name, le_newt_comp);
                                ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_radiobutton’:
/tmp/newt-1.2.9/newt.c:1252:36: error: expected expression before ‘newtComponent’
   ZEND_FETCH_RESOURCE(prev_button, newtComponent, &z_prev_button, -1, le_newt_comp_name, le_newt_comp);
                                    ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_radio_get_current’:
/tmp/newt-1.2.9/newt.c:1274:34: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(set_member, newtComponent, &z_set_member, -1, le_newt_comp_name, le_newt_comp);
                                  ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_label_set_text’:
/tmp/newt-1.2.9/newt.c:1413:29: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(label, newtComponent, &z_label, -1, le_newt_comp_name, le_newt_comp);
                             ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_scrollbar_set’:
/tmp/newt-1.2.9/newt.c:1453:33: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(scrollbar, newtComponent, &z_scrollbar, -1, le_newt_comp_name, le_newt_comp);
                                 ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_get_current’:
/tmp/newt-1.2.9/newt.c:1489:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1490:2: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
  PHP_NEWT_FETCH_DATA((ulong) newtListboxGetCurrent (listbox), return_value);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_set_current’:
/tmp/newt-1.2.9/newt.c:1507:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_set_current_by_key’:
/tmp/newt-1.2.9/newt.c:1526:32: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
  PHP_NEWT_FETCH_KEY (z_key, key);
                                ^
/tmp/newt-1.2.9/newt.c:396:10: error: ‘zend_hash_get_current_data’ undeclared (first use in this function)
   while (zend_hash_get_current_data (&NEWT_G(data), (void **)&z_data_pnfk) == SUCCESS) { \
          ^
/tmp/newt-1.2.9/newt.c:1526:2: note: in expansion of macro ‘PHP_NEWT_FETCH_KEY’
  PHP_NEWT_FETCH_KEY (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:1526:32: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3
  PHP_NEWT_FETCH_KEY (z_key, key);
                                ^
/tmp/newt-1.2.9/newt.c:399:5: error: ‘zend_hash_get_current_key’ undeclared (first use in this function)
     zend_hash_get_current_key(&NEWT_G(data), NULL, &key, 0); \
     ^
/tmp/newt-1.2.9/newt.c:1526:2: note: in expansion of macro ‘PHP_NEWT_FETCH_KEY’
  PHP_NEWT_FETCH_KEY (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:1528:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_set_entry’:
/tmp/newt-1.2.9/newt.c:1548:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_set_width’:
/tmp/newt-1.2.9/newt.c:1566:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_set_data’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1587:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1587:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1587:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_data, key);
                                  ^
/tmp/newt-1.2.9/newt.c:377:3: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
   zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:1587:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c:1589:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_append_entry’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1610:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1610:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1610:34: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_data, key);
                                  ^
/tmp/newt-1.2.9/newt.c:377:3: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
   zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:1610:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c:1612:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_insert_entry’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1633:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, data_key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1633:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, data_key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1633:39: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_data, data_key);
                                       ^
/tmp/newt-1.2.9/newt.c:377:3: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
   zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:1633:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_data, data_key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1634:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key_key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1634:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key_key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1634:37: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_key, key_key);
                                     ^
/tmp/newt-1.2.9/newt.c:1636:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_delete_entry’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1655:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1655:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1655:33: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_key, key);
                                 ^
/tmp/newt-1.2.9/newt.c:377:3: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
   zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:1655:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:1657:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_clear’:
/tmp/newt-1.2.9/newt.c:1674:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_get_entry’:
/tmp/newt-1.2.9/newt.c:1696:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c:1702:32: error: macro "ZVAL_STRING" passed 3 arguments, but takes just 2
    ZVAL_STRING (z_text, text, 1);
                                ^
/tmp/newt-1.2.9/newt.c:1702:4: error: ‘ZVAL_STRING’ undeclared (first use in this function)
    ZVAL_STRING (z_text, text, 1);
    ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1707:3: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
   PHP_NEWT_FETCH_DATA (key, z_data);
   ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_get_selection’:
/tmp/newt-1.2.9/newt.c:1728:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1734:4: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
    PHP_NEWT_FETCH_DATA (retval[i], z_val);
    ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c:1735:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
    zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL);
                                                                                       ^
/tmp/newt-1.2.9/newt.c:1735:4: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
    zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL);
    ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_clear_selection’:
/tmp/newt-1.2.9/newt.c:1755:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
In file included from /usr/include/php/20160303/Zend/zend.h:31:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_select_item’:
/usr/include/php/20160303/Zend/zend_types.h:977:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
   zval *_zv = (zv);        \
               ^
/tmp/newt-1.2.9/newt.c:374:3: note: in expansion of macro ‘SEPARATE_ZVAL’
   SEPARATE_ZVAL(&z_data); \
   ^
/tmp/newt-1.2.9/newt.c:1775:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:375:16: warning: passing argument 1 of ‘zval_add_ref’ from incompatible pointer type [-Wincompatible-pointer-types]
   zval_add_ref(&z_data); \
                ^
/tmp/newt-1.2.9/newt.c:1775:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_variables.h:129:15: note: expected ‘zval * {aka struct _zval_struct *}’ but argument is of type ‘zval ** {aka struct _zval_struct **}’
 ZEND_API void zval_add_ref(zval *p);
               ^
/tmp/newt-1.2.9/newt.c:1775:33: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
  PHP_NEWT_STORE_DATA (z_key, key);
                                 ^
/tmp/newt-1.2.9/newt.c:377:3: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
   zend_hash_next_index_insert (&NEWT_G(data), &z_data, sizeof(zval *), NULL); \
   ^
/tmp/newt-1.2.9/newt.c:1775:2: note: in expansion of macro ‘PHP_NEWT_STORE_DATA’
  PHP_NEWT_STORE_DATA (z_key, key);
  ^
/tmp/newt-1.2.9/newt.c:1777:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_listbox_item_count’:
/tmp/newt-1.2.9/newt.c:1795:31: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(listbox, newtComponent, &z_listbox, -1, le_newt_comp_name, le_newt_comp);
                               ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_tree_get_selection’:
/tmp/newt-1.2.9/newt.c:1863:36: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp);
                                    ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1869:4: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
    PHP_NEWT_FETCH_DATA (retval[i], z_val);
    ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c:1870:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
    zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL);
                                                                                       ^
/tmp/newt-1.2.9/newt.c:1870:4: error: ‘zend_hash_next_index_insert’ undeclared (first use in this function)
    zend_hash_next_index_insert (Z_ARRVAL_P(return_value), &z_val, sizeof(zval *), NULL);
    ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_tree_get_current’:
/tmp/newt-1.2.9/newt.c:1891:36: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp);
                                    ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1892:2: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
  PHP_NEWT_FETCH_DATA ((ulong) newtCheckboxTreeGetCurrent (checkboxtree), return_value);
  ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_tree_set_current’:
/tmp/newt-1.2.9/newt.c:1911:36: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp);
                                    ^
/tmp/newt-1.2.9/newt.c:1913:33: error: macro "zend_hash_get_current_data" passed 2 arguments, but takes just 1
  PHP_NEWT_FETCH_KEY (z_data, key);
                                 ^
/tmp/newt-1.2.9/newt.c:396:10: error: ‘zend_hash_get_current_data’ undeclared (first use in this function)
   while (zend_hash_get_current_data (&NEWT_G(data), (void **)&z_data_pnfk) == SUCCESS) { \
          ^
/tmp/newt-1.2.9/newt.c:1913:2: note: in expansion of macro ‘PHP_NEWT_FETCH_KEY’
  PHP_NEWT_FETCH_KEY (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c:1913:33: error: macro "zend_hash_get_current_key" passed 4 arguments, but takes just 3
  PHP_NEWT_FETCH_KEY (z_data, key);
                                 ^
/tmp/newt-1.2.9/newt.c:399:5: error: ‘zend_hash_get_current_key’ undeclared (first use in this function)
     zend_hash_get_current_key(&NEWT_G(data), NULL, &key, 0); \
     ^
/tmp/newt-1.2.9/newt.c:1913:2: note: in expansion of macro ‘PHP_NEWT_FETCH_KEY’
  PHP_NEWT_FETCH_KEY (z_data, key);
  ^
/tmp/newt-1.2.9/newt.c: In function ‘zif_newt_checkbox_tree_get_multi_selection’:
/tmp/newt-1.2.9/newt.c:1942:36: error: expected expression before ‘newtComponent’
  ZEND_FETCH_RESOURCE(checkboxtree, newtComponent, &z_checkboxtree, -1, le_newt_comp_name, le_newt_comp);
                                    ^
/tmp/newt-1.2.9/newt.c:386:6: error: too many arguments to function ‘zend_hash_index_find’
   if(zend_hash_index_find (&NEWT_G(data), key, (void **)&z_data_pnfk) == SUCCESS) { \
      ^
/tmp/newt-1.2.9/newt.c:1948:4: note: in expansion of macro ‘PHP_NEWT_FETCH_DATA’
    PHP_NEWT_FETCH_DATA (retval[i], z_val);
    ^
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
                 from /usr/include/php/20160303/main/php.h:36,
                 from /tmp/newt-1.2.9/newt.c:27:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
 ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
                              ^
/tmp/newt-1.2.9/newt.c:1949:87: error: macro "zend_hash_next_index_insert" passed 4 arguments, but takes just 2
    zend_hash_next_inde

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-30 07:40 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-30 07:40 UTC] kalle@php.net
The newt PECL package have not been worked on since prior to PHP7's release, I'm gonna suspend this report as the development of this extension has not been active for a while
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC