Git Product home page Git Product logo

php-apn's Introduction

#php-apn# ![](http://img.shields.io/badge/license-PHP 3.01-red.svg?style=flat)

php-apn is a PHP module, wrapping libcapn C library to introduce simple yet powerful interface for sending push notifications to iOS and OS X (>= 10.8) devices from within your PHP code, making integration with Apple Push Notification Service as easy as possible.

Please visit libcapn.org/php-apn for more information

##LICENSE##

The extension is licensed under the PHP 3.01 license; see LICENSE file.

##REQUIREMENTS##

  • capn library v 1.0.x (http://libcapn.org)
  • capn library headers (to build extension)
  • PHP 5.3+ SDK (to build extension)
  • libtool (to build extension)

##INSTALLATION##

###AUTOMATIC###

Just run the following as root:

pecl install apn

or

  • cd php-apn
  • pecl install package.xml

###MANUAL###

To install this module type the following:

  • cd php-apn
  • phpize
  • ./configure
  • make
  • make install

##DOCUMENTATION##

View documentation

##EXAMPLE##

View examples

php-apn's People

Contributors

adobkin avatar bitdeli-chef avatar weltling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-apn's Issues

Errors installing on most recent version of PHP, Ubuntu, etc.

So, I'm having issues install this module in PHP 5.5. Installs just fine on my old 5.3 server.

New server
PEAR Version: 1.9.4
PHP Version: 5.5.3-1ubuntu2.1
Zend Engine Version: 2.5.0
Running on: Linux brtv-web01 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64

Old server (where it works fine)
PEAR Version: 1.9.4
PHP Version: 5.3.10-1ubuntu3.6
Zend Engine Version: 2.3.0
Running on: Linux boilerroom 3.2.0-41-generic #66-Ubuntu SMP Thu Apr 25 03:27:11 UTC 2013 x86_64

Here's what's returned when running make. Sorry, I'm not super fluent in C. Let me know if you need more info. Thanks ;)

Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212

/bin/bash /tmp/pear/temp/pear-build-rootduhZpJ/apn-1.0.2/libtool --mode=compile cc  -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootduhZpJ/apn-1.0.2/include -I/tmp/pear/temp/pear-build-rootduhZpJ/apn-1.0.2/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/capn  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/apn/php_apn.c -o php_apn.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootduhZpJ/apn-1.0.2/include -I/tmp/pear/temp/pear-build-rootduhZpJ/apn-1.0.2/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c  -fPIC -DPIC -o .libs/php_apn.o
/tmp/pear/temp/apn/php_apn.c: In function '__php_apn_dtor':
/tmp/pear/temp/apn/php_apn.c:399:9: error: too few arguments to function 'apn_free'
         apn_free(&apn_ctx);
         ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:461:24: note: declared here
 __apn_export__ uint8_t apn_free(apn_ctx_ref *ctx, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c: In function '__php_apn_payload_dtor':
/tmp/pear/temp/apn/php_apn.c:406:9: error: too few arguments to function 'apn_payload_free'
         apn_payload_free(&apn_payload_ctx);
         ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:648:24: note: declared here
 __apn_export__ uint8_t apn_payload_free(apn_payload_ctx_ref *payload_ctx, apn_error_ref error);
                        ^
In file included from /usr/include/php5/main/php.h:408:0,
                 from /tmp/pear/temp/apn/php_apn.c:23:
/tmp/pear/temp/apn/php_apn.c: In function 'zm_startup_apn':
/tmp/pear/temp/apn/php_apn.c:423:45: error: 'APN_MODE_PRODUCTION' undeclared (first use in this function)
     REGISTER_LONG_CONSTANT("APN_PODUCTION", APN_MODE_PRODUCTION, CONST_CS | CONST_PERSISTENT);
                                             ^
/usr/include/php5/Zend/zend_constants.h:41:103: note: in definition of macro 'REGISTER_LONG_CONSTANT'
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/tmp/pear/temp/apn/php_apn.c:423:45: note: each undeclared identifier is reported only once for each function it appears in
     REGISTER_LONG_CONSTANT("APN_PODUCTION", APN_MODE_PRODUCTION, CONST_CS | CONST_PERSISTENT);
                                             ^
/usr/include/php5/Zend/zend_constants.h:41:103: note: in definition of macro 'REGISTER_LONG_CONSTANT'
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/tmp/pear/temp/apn/php_apn.c:424:43: error: 'APN_MODE_SANDBOX' undeclared (first use in this function)
     REGISTER_LONG_CONSTANT("APN_SANDBOX", APN_MODE_SANDBOX, CONST_CS | CONST_PERSISTENT);
                                           ^
/usr/include/php5/Zend/zend_constants.h:41:103: note: in definition of macro 'REGISTER_LONG_CONSTANT'
 #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name), (lval), (flags), module_number TSRMLS_CC)
                                                                                                       ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_init':
/tmp/pear/temp/apn/php_apn.c:463:5: error: too many arguments to function 'apn_init'
     if (apn_init(&apn_ctx, NULL, NULL, NULL, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:448:24: note: declared here
 __apn_export__ uint8_t apn_init(apn_ctx_ref *ctx, apn_error_ref error) __apn_attribute_warn_unused_result__;
                        ^
/tmp/pear/temp/apn/php_apn.c:464:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_connect':
/tmp/pear/temp/apn/php_apn.c:494:5: warning: passing argument 2 of 'apn_connect' makes integer from pointer without a cast [enabled by default]
     if(apn_connect(apn_ctx, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:476:24: note: expected 'uint8_t' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_connect(const apn_ctx_ref ctx, uint8_t sandbox, apn_error_ref error) __apn_attribute_warn_unused_result__;
                        ^
/tmp/pear/temp/apn/php_apn.c:494:5: error: too few arguments to function 'apn_connect'
     if(apn_connect(apn_ctx, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:476:24: note: declared here
 __apn_export__ uint8_t apn_connect(const apn_ctx_ref ctx, uint8_t sandbox, apn_error_ref error) __apn_attribute_warn_unused_result__;
                        ^
In file included from /usr/include/php5/main/php.h:39:0,
                 from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *__s=(s);    \
                   ^
/tmp/pear/temp/apn/php_apn.c:495:9: note: in expansion of macro 'ZVAL_STRING'
         ZVAL_STRING(ref_error, apn_error_message(error), 1);
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_certificate':
/tmp/pear/temp/apn/php_apn.c:555:5: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default]
     if (apn_set_certificate(apn_ctx, value, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:528:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_set_certificate(apn_ctx_ref ctx, const char *cert, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:556:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_mode':
/tmp/pear/temp/apn/php_apn.c:577:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_private_key':
/tmp/pear/temp/apn/php_apn.c:604:5: warning: passing argument 3 of 'apn_set_private_key' from incompatible pointer type [enabled by default]
     if (apn_set_private_key(apn_ctx, key, key_pass, NULL)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:542:24: note: expected 'apn_error_ref' but argument is of type 'char *'
 __apn_export__ uint8_t apn_set_private_key(apn_ctx_ref ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:604:5: error: too many arguments to function 'apn_set_private_key'
     if (apn_set_private_key(apn_ctx, key, key_pass, NULL)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:542:24: note: declared here
 __apn_export__ uint8_t apn_set_private_key(apn_ctx_ref ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:605:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function '__php_apn_add_token':
/tmp/pear/temp/apn/php_apn.c:618:5: warning: passing argument 3 of 'apn_add_token' from incompatible pointer type [enabled by default]
     if (apn_add_token(apn_ctx, token, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:559:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_add_token(apn_ctx_ref ctx, const char *token, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:619:9: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to add device token '%s': %s (%d)",  token, apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_array':
/tmp/pear/temp/apn/php_apn.c:743:21: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default]
                     if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:528:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_set_certificate(apn_ctx_ref ctx, const char *cert, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:744:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set certificate: %s (%d)",  apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:762:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)",  apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:789:9: warning: passing argument 3 of 'apn_set_private_key' from incompatible pointer type [enabled by default]
         if (apn_set_private_key(apn_ctx, private_key, private_key_pass, &error)) {
         ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:542:24: note: expected 'apn_error_ref' but argument is of type 'char *'
 __apn_export__ uint8_t apn_set_private_key(apn_ctx_ref ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:789:9: error: too many arguments to function 'apn_set_private_key'
         if (apn_set_private_key(apn_ctx, private_key, private_key_pass, &error)) {
         ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:542:24: note: declared here
 __apn_export__ uint8_t apn_set_private_key(apn_ctx_ref ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:790:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
             php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
             ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_send':
/tmp/pear/temp/apn/php_apn.c:827:5: warning: passing argument 3 of 'apn_send' from incompatible pointer type [enabled by default]
     if(apn_send(apn_ctx, payload, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:616:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_send(const apn_ctx_ref ctx, apn_payload_ctx_ref payload_ctx, apn_error_ref error);
                        ^
In file included from /usr/include/php5/main/php.h:39:0,
                 from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *__s=(s);    \
                   ^
/tmp/pear/temp/apn/php_apn.c:828:9: note: in expansion of macro 'ZVAL_STRING'
         ZVAL_STRING(ref_error, apn_error_message(error), 1);
         ^
/tmp/pear/temp/apn/php_apn.c: In function '__php_apn_payload_add_token':
/tmp/pear/temp/apn/php_apn.c:845:9: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to add device token '%s': %s (%d)",  token, apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_init':
/tmp/pear/temp/apn/php_apn.c:896:5: warning: passing argument 2 of 'apn_payload_init' from incompatible pointer type [enabled by default]
     if (apn_payload_init(&payload, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:635:24: note: expected 'apn_error_ref' but argument is of type 'struct apn_error **'
 __apn_export__ uint8_t apn_payload_init(apn_payload_ctx_ref *payload_ctx, apn_error_ref error) __apn_attribute_warn_unused_result__;
                        ^
/tmp/pear/temp/apn/php_apn.c:897:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_badge':
/tmp/pear/temp/apn/php_apn.c:936:5: warning: passing argument 3 of 'apn_payload_set_badge' from incompatible pointer type [enabled by default]
     if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:678:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_badge(apn_payload_ctx_ref payload_ctx, uint16_t badge, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:937:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_body':
/tmp/pear/temp/apn/php_apn.c:962:5: warning: passing argument 3 of 'apn_payload_set_body' from incompatible pointer type [enabled by default]
     if (apn_payload_set_body(payload, value, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:709:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_body(apn_payload_ctx_ref payload_ctx, const char *body, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:963:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set alert message: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_sound':
/tmp/pear/temp/apn/php_apn.c:988:5: warning: passing argument 3 of 'apn_payload_set_sound' from incompatible pointer type [enabled by default]
     if (apn_payload_set_sound(payload, value, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:695:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_sound(apn_payload_ctx_ref payload_ctx, const char *sound, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:989:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_key':
/tmp/pear/temp/apn/php_apn.c:1026:5: warning: passing argument 5 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default]
     if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:768:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_localized_key(apn_payload_ctx_ref payload_ctx, const char *key, char **args, uint16_t args_count, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1027:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_launch_image':
/tmp/pear/temp/apn/php_apn.c:1054:5: warning: passing argument 3 of 'apn_payload_set_launch_image' from incompatible pointer type [enabled by default]
     if (apn_payload_set_launch_image(payload, value, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:748:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_launch_image(apn_payload_ctx_ref payload_ctx, const char *image, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1055:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_action_key':
/tmp/pear/temp/apn/php_apn.c:1082:5: warning: passing argument 3 of 'apn_payload_set_localized_action_key' from incompatible pointer type [enabled by default]
     if (apn_payload_set_localized_action_key(payload, value, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:729:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_localized_action_key(apn_payload_ctx_ref payload_ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1083:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_custom_property':
/tmp/pear/temp/apn/php_apn.c:1113:13: warning: passing argument 4 of 'apn_payload_add_custom_property_bool' from incompatible pointer type [enabled by default]
             apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error);
             ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:877:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_add_custom_property_bool(apn_payload_ctx_ref payload_ctx, const char *key,
                        ^
/tmp/pear/temp/apn/php_apn.c:1116:13: warning: passing argument 4 of 'apn_payload_add_custom_property_integer' from incompatible pointer type [enabled by default]
             apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error);
             ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:909:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_add_custom_property_integer(apn_payload_ctx_ref payload_ctx, const char *name,
                        ^
/tmp/pear/temp/apn/php_apn.c:1119:13: warning: passing argument 4 of 'apn_payload_add_custom_property_double' from incompatible pointer type [enabled by default]
             apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error);
             ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:893:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_add_custom_property_double(apn_payload_ctx_ref payload_ctx, const char *name,
                        ^
/tmp/pear/temp/apn/php_apn.c:1122:13: warning: passing argument 4 of 'apn_payload_add_custom_property_string' from incompatible pointer type [enabled by default]
             apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error);
             ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:938:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_add_custom_property_string(apn_payload_ctx_ref payload_ctx, const char *name,
                        ^
/tmp/pear/temp/apn/php_apn.c:1125:13: warning: passing argument 3 of 'apn_payload_add_custom_property_null' from incompatible pointer type [enabled by default]
             apn_payload_add_custom_property_null(payload, key, &error);
             ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:923:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_add_custom_property_null(apn_payload_ctx_ref payload_ctx, const char *name, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1133:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set custom property: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_expiry':
/tmp/pear/temp/apn/php_apn.c:1155:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_array':
/tmp/pear/temp/apn/php_apn.c:1248:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)",  apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1257:21: warning: passing argument 3 of 'apn_payload_set_badge' from incompatible pointer type [enabled by default]
                     } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:678:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_badge(apn_payload_ctx_ref payload_ctx, uint16_t badge, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1258:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)",  apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1265:21: warning: passing argument 3 of 'apn_payload_set_launch_image' from incompatible pointer type [enabled by default]
                     if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:748:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_launch_image(apn_payload_ctx_ref payload_ctx, const char *image, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1266:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1273:21: warning: passing argument 3 of 'apn_payload_set_localized_action_key' from incompatible pointer type [enabled by default]
                     if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:729:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_localized_action_key(apn_payload_ctx_ref payload_ctx, const char *key, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1274:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1281:21: warning: passing argument 3 of 'apn_payload_set_sound' from incompatible pointer type [enabled by default]
                     if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:695:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_sound(apn_payload_ctx_ref payload_ctx, const char *sound, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1282:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1289:21: warning: passing argument 3 of 'apn_payload_set_body' from incompatible pointer type [enabled by default]
                     if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) {
                     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:709:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_body(apn_payload_ctx_ref payload_ctx, const char *body, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1290:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
                         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set body: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
                         ^
/tmp/pear/temp/apn/php_apn.c:1329:9: warning: passing argument 5 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default]
         if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) {
         ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:768:24: note: expected 'apn_error_ref' but argument is of type 'struct __apn_error **'
 __apn_export__ uint8_t apn_payload_set_localized_key(apn_payload_ctx_ref payload_ctx, const char *key, char **args, uint16_t args_count, apn_error_ref error);
                        ^
/tmp/pear/temp/apn/php_apn.c:1330:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
             php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
             ^
In file included from /usr/include/php5/main/php.h:39:0,
                 from /tmp/pear/temp/apn/php_apn.c:23:
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback_connect':
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *__s=(s);    \
                   ^
/tmp/pear/temp/apn/php_apn.c:1362:9: note: in expansion of macro 'ZVAL_STRING'
         ZVAL_STRING(ref_error, apn_error_message(error), 1);
         ^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback':
/tmp/pear/temp/apn/php_apn.c:1397:5: warning: passing argument 2 of 'apn_feedback' from incompatible pointer type [enabled by default]
     if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:618:26: note: expected 'const char ***' but argument is of type 'char ***'
  __apn_export__ uint32_t apn_feedback(const apn_ctx_ref ctx, const char ***tokens, apn_error_ref error);
                          ^
/tmp/pear/temp/apn/php_apn.c:1397:5: warning: passing argument 3 of 'apn_feedback' from incompatible pointer type [enabled by default]
     if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:618:26: note: expected 'apn_error_ref' but argument is of type 'uint32_t *'
  __apn_export__ uint32_t apn_feedback(const apn_ctx_ref ctx, const char ***tokens, apn_error_ref error);
                          ^
/tmp/pear/temp/apn/php_apn.c:1397:5: error: too many arguments to function 'apn_feedback'
     if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
     ^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
                 from /tmp/pear/temp/apn/php_apn.c:27:
/usr/local/include/capn/capn/apn.h:618:26: note: declared here
  __apn_export__ uint32_t apn_feedback(const apn_ctx_ref ctx, const char ***tokens, apn_error_ref error);
                          ^
In file included from /usr/include/php5/main/php.h:39:0,
                 from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
   const char *__s=(s);    \
                   ^
/tmp/pear/temp/apn/php_apn.c:1398:9: note: in expansion of macro 'ZVAL_STRING'
         ZVAL_STRING(ref_error, apn_error_message(error), 1);
         ^
/tmp/pear/temp/apn/php_apn.c:1400:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
         php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
         ^
make: *** [php_apn.lo] Error 1

Using it without installing

Is there any way to use this library / module without installing anything? My company uses a shared hosting server. With my very limited knowledge of server side programming, I understand that it's impossible (or very complicated) to install anything without root access. In that case, how to use php-apn? Can't I just copy all required files, and use require_once or something like that? I had used pushwoosh php script in same way.

AWS yum install

Cant get it to install on AWS, php-devel fails.
Please help :)

the install procedure stopped at "make"

/Users/mls/Downloads/apn-1.0.3/php_apn.c:29:38: error: unknown type name 'apn_payload_ctx_ref'; did you mean 'apn_payload_t'?
static zval php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC);
^~~~~~~~~~~~~~~~~~~
apn_payload_t
/usr/include/capn/apn_payload.h:49:32: note: 'apn_payload_t' declared here
typedef struct __apn_payload_t apn_payload_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:397:40: error: expected ';' at end of declaration
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:5: error: use of undeclared identifier 'apn_payload_ctx_ref'; did you mean
'apn_payload_free'?
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
apn_payload_free
/usr/include/capn/apn_payload.h:71:21: note: 'apn_payload_free' declared here
__apn_export
void apn_payload_free(apn_payload_t *payload);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:24: error: expected ';' after expression
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:25: error: use of undeclared identifier 'apn_payload_ctx'
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:44: error: use of undeclared identifier 'apn_payload_ctx_ref'; did you mean
'apn_payload_free'?
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
apn_payload_free
/usr/include/capn/apn_payload.h:71:21: note: 'apn_payload_free' declared here
apn_export void apn_payload_free(apn_payload_t *payload);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:405:9: error: use of undeclared identifier 'apn_payload_ctx'
if (apn_payload_ctx) {
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:406:27: error: use of undeclared identifier 'apn_payload_ctx'
apn_payload_free(&apn_payload_ctx);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:404:5: warning: expression result unused [-Wunused-value]
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^~~~~~~~~~~~~~~~~~~
/Users/mls/Downloads/apn-1.0.3/php_apn.c:456:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = NULL;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:456:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = NULL;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:457:5: error: unknown type name 'apn_error_ref'; did you mean 'apn_errors'?
apn_error_ref error = NULL;
^~~~~~~~~~~~~
apn_errors
/usr/include/capn/apn.h:129:3: note: 'apn_errors' declared here
} apn_errors;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:457:19: warning: incompatible pointer to integer conversion initializing 'apn_errors'
(aka 'enum __apn_errors') with an expression of type 'void *' [-Wint-conversion]
apn_error_ref error = NULL;
^ ~~~~
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:84: warning: implicit declaration of function 'apn_error_message' is invalid in
C99 [-Wimplicit-function-declaration]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:110: warning: implicit declaration of function 'APN_ERR_CODE_WITHOUT_CLASS' is
invalid in C99 [-Wimplicit-function-declaration]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:137: warning: implicit declaration of function 'apn_error_code' is invalid in C99
[-Wimplicit-function-declaration]
...TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_cod...
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:464:84: warning: format specifies type 'char *' but the argument has type 'int'
[-Wformat]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CO...
~~ ^~~~~~~~~~~~~~~~~~~~~~~~
%d
/Users/mls/Downloads/apn-1.0.3/php_apn.c:465:9: warning: implicit declaration of function 'apn_error_free' is invalid in C99
[-Wimplicit-function-declaration]
apn_error_free(&error);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:5: error: use of undeclared identifier 'apn_error_ref'; did you mean
'apn_error_free'?
apn_error_ref error = NULL;
^~~~~~~~~~~~~
apn_error_free
/Users/mls/Downloads/apn-1.0.3/php_apn.c:465:9: note: 'apn_error_free' declared here
apn_error_free(&error);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:18: error: expected ';' after expression
apn_error_ref error = NULL;
^
;
/Users/mls/Downloads/apn-1.0.3/php_apn.c:476:19: error: use of undeclared identifier 'error'
apn_error_ref error = NULL;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:477:5: error: unknown type name 'apn_ctx_ref'; did you mean 'apn_ctx_t'?
apn_ctx_ref apn_ctx = NULL;
^~~~~~~~~~~
apn_ctx_t
/usr/include/capn/apn.h:140:28: note: 'apn_ctx_t' declared here
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:477:17: error: variable has incomplete type 'apn_ctx_t' (aka 'struct __apn_ctx_t')
apn_ctx_ref apn_ctx = NULL;
^
/usr/include/capn/apn.h:140:16: note: forward declaration of 'struct __apn_ctx_t'
typedef struct __apn_ctx_t apn_ctx_t;
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:484:5: error: use of undeclared identifier 'apn_ctx_ref'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/Users/mls/Downloads/apn-1.0.3/php_apn.c:35:18: note: expanded from macro 'PHP_APN_FETCH_RESOURCE'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
7 warnings and 20 errors generated.
make: *
* [php_apn.lo] Error 1

Could not send push, invalid token

I have a couple thousand devices I am trying to send a push notification to, and I keep getting this error: message":"Could not send push invalid device token","errno":703 It is sending the push notification to some devices, but stops sending once it hits an invalid token. How can I set PHP-APN to ignore these invalid tokens or how do I get rid of them efficiently?

apn_payload_add_custom_property doesn't work with string values

apn_payload_add_custom_property($payload, 'test', 56); // works
apn_payload_add_custom_property($payload, 'test', NULL); // works
apn_payload_add_custom_property($payload, 'test', TRUE); // works
apn_payload_add_custom_property($payload, 'test', 'TEST'); // successfully sending, but the devices don't receive the notification

Additional Info:
Apple Push Notification Service support enabled
Extension Version 1.0.0
Version of libcapn 1.0.0

P.S. There is no docs for apn_payload_add_custom_property: http://libcapn.org/php-apn/doc/html/index.html

Error installing in ubuntu 14.04 - make: *** [php_apn.lo] Error 1

root@IdoogroupServer:~/php-apn-master# pecl install package.xml
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
libcapn installation prefix [no] :
building in /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3
running: /tmp/pear/temp/apn/configure --with-apn=no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20121212
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for apn support... yes, shared
checking for PHP 5.3.0 or greater... 50509
checking for apn.h in default path... found in /usr
checking for libcapn.so in default path... found in /usr/lib
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) gawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -o php_apn.lo
libtool: compile: cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -fPIC -DPIC -o .libs/php_apn.o
/tmp/pear/temp/apn/php_apn.c:29:38: error: unknown type name 'apn_payload_ctx_ref'
static zval _**php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC);
^
/tmp/pear/temp/apn/php_apn.c: In function '__php_apn_dtor':
/tmp/pear/temp/apn/php_apn.c:405:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:405:28: error: 'apn_ctx_ref' undeclared (first use in this function)
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:405:28: note: each undeclared identifier is reported only once for each function it appears in
/tmp/pear/temp/apn/php_apn.c:405:41: error: expected ',' or ';' before 'rsrc'
apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:407:9: warning: passing argument 1 of 'apn_free' from incompatible pointer type [enabled by default]
apn_free(&apn_ctx);
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:201:21: note: expected 'struct apn_ctx_t ' but argument is of type 'int '
__apn_export
void apn_free(apn_ctx_t *ctx);
^
/tmp/pear/temp/apn/php_apn.c: In function '**php_apn_payload_dtor':
/tmp/pear/temp/apn/php_apn.c:412:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:412:44: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:412:65: error: expected ',' or ';' before 'rsrc'
apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr;
^
/tmp/pear/temp/apn/php_apn.c:414:9: warning: passing argument 1 of 'apn_payload_free' from incompatible pointer type [enabled by default]
apn_payload_free(&apn_payload_ctx);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:71:21: note: expected 'struct apn_payload_t ' but argument is of type 'int '
__apn_export
void apn_payload_free(apn_payload_t *payload);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_init':
/tmp/pear/temp/apn/php_apn.c:464:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:465:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:472:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:477:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default]
ZEND_REGISTER_RESOURCE(return_value, apn_ctx, le_apn);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void *' but argument is of type 'int'
ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_connect':
/tmp/pear/temp/apn/php_apn.c:484:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:485:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:502:5: warning: passing argument 1 of 'apn_connect' makes pointer from integer without a cast [enabled by default]
if(apn_connect(apn_ctx, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:211:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export
apn_return apn_connect(apn_ctx_t * const ctx)
^
/tmp/pear/temp/apn/php_apn.c:502:5: error: too many arguments to function 'apn_connect'
if(apn_connect(apn_ctx, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:211:27: note: declared here
apn_export apn_return apn_connect(apn_ctx_t * const ctx)
^
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
const char *s=(s);
^
/tmp/pear/temp/apn/php_apn.c:503:9: note: in expansion of macro 'ZVAL_STRING'
ZVAL_STRING(ref_error, apn_error_message(error), 1);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_close':
/tmp/pear/temp/apn/php_apn.c:513:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:523:5: warning: passing argument 1 of 'apn_close' makes pointer from integer without a cast [enabled by default]
apn_close(apn_ctx);
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:219:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export
void apn_close(apn_ctx_t * const ctx)
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_free':
/tmp/pear/temp/apn/php_apn.c:528:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_certificate':
/tmp/pear/temp/apn/php_apn.c:548:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:550:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default]
if (apn_set_certificate(apn_ctx, value, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export
apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default]
if (apn_set_certificate(apn_ctx, value, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int *'
apn_export apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:563:5: error: too few arguments to function 'apn_set_certificate'
if (apn_set_certificate(apn_ctx, value, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: declared here
apn_export apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:564:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_mode':
/tmp/pear/temp/apn/php_apn.c:574:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:576:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:584:5: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default]
if (apn_set_mode(apn_ctx, mode, NULL)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export
void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode)
^
/tmp/pear/temp/apn/php_apn.c:584:5: error: too many arguments to function 'apn_set_mode'
if (apn_set_mode(apn_ctx, mode, NULL)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:243:21: note: declared here
apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode)
^
/tmp/pear/temp/apn/php_apn.c:584:9: error: void value not ignored as it ought to be
if (apn_set_mode(apn_ctx, mode, NULL)) {
^
/tmp/pear/temp/apn/php_apn.c:585:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_private_key':
/tmp/pear/temp/apn/php_apn.c:598:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:600:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
**res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:613:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: At top level:
/tmp/pear/temp/apn/php_apn.c:620:36: error: unknown type name 'apn_ctx_ref'
static uint8_t php_apn_add_token(apn_ctx_ref apn_ctx, const char token, uint32_t token_length TSRMLS_DC) {
^
/tmp/pear/temp/apn/php_apn.c:635:37: error: unknown type name 'apn_ctx_ref'
static uint8_t __php_apn_add_tokens(apn_ctx_ref apn_ctx TSRMLS_DC, zval tokens) {
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_token':
/tmp/pear/temp/apn/php_apn.c:675:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_tokens':
/tmp/pear/temp/apn/php_apn.c:692:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_array':
/tmp/pear/temp/apn/php_apn.c:711:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:720:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default]
if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export
apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default]
if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int *'
apn_export apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:751:21: error: too few arguments to function 'apn_set_certificate'
if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:279:27: note: declared here
apn_export apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass)
^
/tmp/pear/temp/apn/php_apn.c:752:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:769:21: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default]
} else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode)
^
/tmp/pear/temp/apn/php_apn.c:769:21: error: too many arguments to function 'apn_set_mode'
} else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:243:21: note: declared here
apn_export void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode)
^
/tmp/pear/temp/apn/php_apn.c:769:32: error: void value not ignored as it ought to be
} else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) {
^
/tmp/pear/temp/apn/php_apn.c:770:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:798:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_send':
/tmp/pear/temp/apn/php_apn.c:814:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:817:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:818:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 1 of 'apn_send' makes pointer from integer without a cast [enabled by default]
if(apn_send(apn_ctx, payload, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:373:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t *_invalid_tokens)
^
/tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 2 of 'apn_send' makes pointer from integer without a cast [enabled by default]
if(apn_send(apn_ctx, payload, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:373:27: note: expected 'const struct apn_payload_t _' but argument is of type 'int'
apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t *_invalid_tokens)
^
/tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 3 of 'apn_send' from incompatible pointer type [enabled by default]
if(apn_send(apn_ctx, payload, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:373:27: note: expected 'struct apn_array_t _' but argument is of type 'int *'
apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t *_invalid_tokens)
^
/tmp/pear/temp/apn/php_apn.c:835:5: error: too few arguments to function 'apn_send'
if(apn_send(apn_ctx, payload, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:373:27: note: declared here
apn_export apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t _payload, apn_array_t *tokens, apn_array_t *_invalid_tokens)
^
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
const char **s=(s);
^
/tmp/pear/temp/apn/php_apn.c:836:9: note: in expansion of macro 'ZVAL_STRING'
ZVAL_STRING(ref_error, apn_error_message(error), 1);
^
/tmp/pear/temp/apn/php_apn.c:838:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid token: %s", apn_error_invalid_token(error));
^
/tmp/pear/temp/apn/php_apn.c: At top level:
/tmp/pear/temp/apn/php_apn.c:849:44: error: unknown type name 'apn_payload_ctx_ref'
static uint8_t __php_apn_payload_add_token(apn_payload_ctx_ref payload_ctx, const char *token, uint32_t token_length TSRMLS_DC) {
^
/tmp/pear/temp/apn/php_apn.c:864:45: error: unknown type name 'apn_payload_ctx_ref'
static uint8_t __php_apn_payload_add_tokens(apn_payload_ctx_ref payload_ctx TSRMLS_DC, zval *tokens) {
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_init':
/tmp/pear/temp/apn/php_apn.c:900:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:901:5: error: unknown type name 'apn_error'
apn_error *error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:908:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:913:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default]
ZEND_REGISTER_RESOURCE(return_value, payload, le_payload);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void *' but argument is of type 'int'
ZEND_API int zend_register_resource(zval rsrc_result, void rsrc_pointer, int rsrc_type TSRMLS_DC);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_free':
/tmp/pear/temp/apn/php_apn.c:918:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_badge':
/tmp/pear/temp/apn/php_apn.c:937:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:939:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:947:5: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge)
^
/tmp/pear/temp/apn/php_apn.c:947:5: error: too many arguments to function 'apn_payload_set_badge'
if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:99:27: note: declared here
apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge)
^
/tmp/pear/temp/apn/php_apn.c:948:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_body':
/tmp/pear/temp/apn/php_apn.c:959:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:961:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:973:5: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_body(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body)
^
/tmp/pear/temp/apn/php_apn.c:973:5: error: too many arguments to function 'apn_payload_set_body'
if (apn_payload_set_body(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:159:27: note: declared here
apn_export apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body)
^
/tmp/pear/temp/apn/php_apn.c:974:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set alert message: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_sound':
/tmp/pear/temp/apn/php_apn.c:985:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:987:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:999:5: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_sound(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound)
^
/tmp/pear/temp/apn/php_apn.c:999:5: error: too many arguments to function 'apn_payload_set_sound'
if (apn_payload_set_sound(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:115:27: note: declared here
apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound)
^
/tmp/pear/temp/apn/php_apn.c:1000:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_key':
/tmp/pear/temp/apn/php_apn.c:1012:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1017:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default]
if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t * const' but argument is of type 'char *
'
apn_export apn_return apn_payload_set_localized_key(apn_payload_t const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1037:5: error: too many arguments to function 'apn_payload_set_localized_key'
if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: declared here
apn_export apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1038:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_launch_image':
/tmp/pear/temp/apn/php_apn.c:1050:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1052:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1065:5: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_launch_image(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image)
^
/tmp/pear/temp/apn/php_apn.c:1065:5: error: too many arguments to function 'apn_payload_set_launch_image'
if (apn_payload_set_launch_image(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:196:27: note: declared here
apn_export apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image)
^
/tmp/pear/temp/apn/php_apn.c:1066:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_action_key':
/tmp/pear/temp/apn/php_apn.c:1078:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1080:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1093:5: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_localized_action_key(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1093:5: error: too many arguments to function 'apn_payload_set_localized_action_key'
if (apn_payload_set_localized_action_key(payload, value, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:178:27: note: declared here
apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1094:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_custom_property':
/tmp/pear/temp/apn/php_apn.c:1105:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1109:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1124:13: warning: passing argument 1 of 'apn_payload_add_custom_property_bool' makes pointer from integer without a cast [enabled by default]
apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:256:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
apn_return apn_payload_add_custom_property_bool(apn_payload_t *const payload, const char *const key, uint8_t value)
^
/tmp/pear/temp/apn/php_apn.c:1124:13: error: too many arguments to function 'apn_payload_add_custom_property_bool'
apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:256:27: note: declared here
apn_export apn_return apn_payload_add_custom_property_bool(apn_payload_t *const payload, const char *const key, uint8_t value)
^
/tmp/pear/temp/apn/php_apn.c:1127:13: warning: passing argument 1 of 'apn_payload_add_custom_property_integer' makes pointer from integer without a cast [enabled by default]
apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:242:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_add_custom_property_integer(apn_payload_t *const payload, const char *const key, int64_t value)
^
/tmp/pear/temp/apn/php_apn.c:1127:13: error: too many arguments to function 'apn_payload_add_custom_property_integer'
apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:242:27: note: declared here
apn_export apn_return apn_payload_add_custom_property_integer(apn_payload_t *const payload, const char *const key, int64_t value)
^
/tmp/pear/temp/apn/php_apn.c:1130:13: warning: passing argument 1 of 'apn_payload_add_custom_property_double' makes pointer from integer without a cast [enabled by default]
apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:270:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t *const payload, const char *const key, double value)
^
/tmp/pear/temp/apn/php_apn.c:1130:13: error: too many arguments to function 'apn_payload_add_custom_property_double'
apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:270:27: note: declared here
apn_export apn_return apn_payload_add_custom_property_double(apn_payload_t *const payload, const char *const key, double value)
^
/tmp/pear/temp/apn/php_apn.c:1133:13: warning: passing argument 1 of 'apn_payload_add_custom_property_string' makes pointer from integer without a cast [enabled by default]
apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:297:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char *const key, const char *value)
^
/tmp/pear/temp/apn/php_apn.c:1133:13: error: too many arguments to function 'apn_payload_add_custom_property_string'
apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:297:27: note: declared here
apn_export apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char *const key, const char *value)
^
/tmp/pear/temp/apn/php_apn.c:1136:13: warning: passing argument 1 of 'apn_payload_add_custom_property_null' makes pointer from integer without a cast [enabled by default]
apn_payload_add_custom_property_null(payload, key, &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:283:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_add_custom_property_null(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1136:13: error: too many arguments to function 'apn_payload_add_custom_property_null'
apn_payload_add_custom_property_null(payload, key, &error);
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:283:27: note: declared here
apn_export apn_return apn_payload_add_custom_property_null(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1144:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set custom property: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_expiry':
/tmp/pear/temp/apn/php_apn.c:1155:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1157:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1165:5: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_expiry(payload, expiry, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry)
^
/tmp/pear/temp/apn/php_apn.c:1165:5: error: too many arguments to function 'apn_payload_set_expiry'
if (apn_payload_set_expiry(payload, expiry, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:83:21: note: declared here
apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry)
^
/tmp/pear/temp/apn/php_apn.c:1165:9: error: void value not ignored as it ought to be
if (apn_payload_set_expiry(payload, expiry, &error)) {
^
/tmp/pear/temp/apn/php_apn.c:1166:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_content_available':
/tmp/pear/temp/apn/php_apn.c:1177:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1179:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1187:5: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_content_available(payload, content_available, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available)
^
/tmp/pear/temp/apn/php_apn.c:1187:5: error: too many arguments to function 'apn_payload_set_content_available'
if (apn_payload_set_content_available(payload, content_available, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:129:21: note: declared here
apn_export void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available)
^
/tmp/pear/temp/apn/php_apn.c:1187:9: error: void value not ignored as it ought to be
if (apn_payload_set_content_available(payload, content_available, &error)) {
^
/tmp/pear/temp/apn/php_apn.c:1188:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_token':
/tmp/pear/temp/apn/php_apn.c:1200:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_tokens':
/tmp/pear/temp/apn/php_apn.c:1217:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_array':
/tmp/pear/temp/apn/php_apn.c:1236:5: error: unknown type name 'apn_payload_ctx_ref'
apn_payload_ctx_ref payload = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1249:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function)
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find'
__res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_payload) {
^
/tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE'
PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1280:21: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default]
} else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
__apn_export
void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry)
^
/tmp/pear/temp/apn/php_apn.c:1280:21: error: too many arguments to function 'apn_payload_set_expiry'
} else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:83:21: note: declared here
apn_export void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry)
^
/tmp/pear/temp/apn/php_apn.c:1280:32: error: void value not ignored as it ought to be
} else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) {
^
/tmp/pear/temp/apn/php_apn.c:1281:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1290:21: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default]
} else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge)
^
/tmp/pear/temp/apn/php_apn.c:1290:21: error: too many arguments to function 'apn_payload_set_badge'
} else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:99:27: note: declared here
apn_export apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge)
^
/tmp/pear/temp/apn/php_apn.c:1291:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1300:21: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default]
} else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available)
^
/tmp/pear/temp/apn/php_apn.c:1300:21: error: too many arguments to function 'apn_payload_set_content_available'
} else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:129:21: note: declared here
apn_export void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available)
^
/tmp/pear/temp/apn/php_apn.c:1300:32: error: void value not ignored as it ought to be
} else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) {
^
/tmp/pear/temp/apn/php_apn.c:1301:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1308:21: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image)
^
/tmp/pear/temp/apn/php_apn.c:1308:21: error: too many arguments to function 'apn_payload_set_launch_image'
if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:196:27: note: declared here
apn_export apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image)
^
/tmp/pear/temp/apn/php_apn.c:1309:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1316:21: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1316:21: error: too many arguments to function 'apn_payload_set_localized_action_key'
if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:178:27: note: declared here
apn_export apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key)
^
/tmp/pear/temp/apn/php_apn.c:1317:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1324:21: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound)
^
/tmp/pear/temp/apn/php_apn.c:1324:21: error: too many arguments to function 'apn_payload_set_sound'
if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:115:27: note: declared here
apn_export apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound)
^
/tmp/pear/temp/apn/php_apn.c:1325:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1332:21: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body)
^
/tmp/pear/temp/apn/php_apn.c:1332:21: error: too many arguments to function 'apn_payload_set_body'
if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:159:27: note: declared here
apn_export apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body)
^
/tmp/pear/temp/apn/php_apn.c:1333:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set body: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default]
if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int'
apn_export apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default]
if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t * const' but argument is of type 'char *
'
apn_export apn_return apn_payload_set_localized_key(apn_payload_t _const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1372:9: error: too many arguments to function 'apn_payload_set_localized_key'
if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) {
^
In file included from /usr/include/capn/apn_binary_message.h:27:0,
from /usr/include/capn/apn.h:27,
from /tmp/pear/temp/apn/php_apn.h:22,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn_payload.h:215:27: note: declared here
apn_export apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args)
^
/tmp/pear/temp/apn/php_apn.c:1373:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]
php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error)));
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback_connect':
/tmp/pear/temp/apn/php_apn.c:1386:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1387:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1404:5: warning: passing argument 1 of 'apn_feedback_connect' makes pointer from integer without a cast [enabled by default]
if(apn_feedback_connect(apn_ctx, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:385:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int'
__apn_export apn_return apn_feedback_connect(apn_ctx_t * const ctx)
^
/tmp/pear/temp/apn/php_apn.c:1404:5: error: too many arguments to function 'apn_feedback_connect'
if(apn_feedback_connect(apn_ctx, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:385:27: note: declared here
apn_export apn_return apn_feedback_connect(apn_ctx_t * const ctx)
^
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
const char *s=(s);
^
/tmp/pear/temp/apn/php_apn.c:1405:9: note: in expansion of macro 'ZVAL_STRING'
ZVAL_STRING(ref_error, apn_error_message(error), 1);
^
/tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback':
/tmp/pear/temp/apn/php_apn.c:1418:5: error: unknown type name 'apn_error_ref'
apn_error_ref error = NULL;
^
/tmp/pear/temp/apn/php_apn.c:1422:5: error: unknown type name 'apn_ctx_ref'
apn_ctx_ref apn_ctx = NULL;
^
/tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function)
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
In file included from /usr/include/php5/Zend/zend_API.h:27:0,
from /usr/include/php5/main/php.h:39,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find'
#define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC)
^
/tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find'
__res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type);
^
/tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default]
if (NULL == __res || __rsrc_type != le_apn) {
^
/tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE'
PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE);
^
/tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 1 of 'apn_feedback' makes pointer from integer without a cast [enabled by default]
if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:399:27: note: expected 'const struct apn_ctx_t * const' but argument is of type 'int'
__apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t *tokens)
^
/tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 2 of 'apn_feedback' from incompatible pointer type [enabled by default]
if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:399:27: note: expected 'struct apn_array_t *
' but argument is of type 'char *
'
apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t *_tokens)
^
/tmp/pear/temp/apn/php_apn.c:1440:5: error: too many arguments to function 'apn_feedback'
if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) {
^
In file included from /tmp/pear/temp/apn/php_apn.h:22:0,
from /tmp/pear/temp/apn/php_apn.c:27:
/usr/include/capn/apn.h:399:27: note: declared here
apn_export apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t *tokens)
^
In file included from /usr/include/php5/main/php.h:39:0,
from /tmp/pear/temp/apn/php_apn.c:23:
/usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default]
const char *__s=(s);
^
/tmp/pear/temp/apn/php_apn.c:1441:9: note: in expansion of macro 'ZVAL_STRING'
ZVAL_STRING(ref_error, apn_error_message(error), 1);
^
make: *
* [php_apn.lo] Error 1
ERROR: make' failed root@IdoogroupServer:~/php-apn-master# pecl install package.xml 5 source files, building running: phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 libcapn installation prefix [no] : building in /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3 running: /tmp/pear/temp/apn/configure --with-apn=no checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib checking for PHP extension directory... /usr/lib/php5/20121212 checking for PHP installed headers prefix... /usr/include/php5 checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for apn support... yes, shared checking for PHP 5.3.0 or greater... 50509 checking for apn.h in default path... found in /usr checking for libcapn.so in default path... found in /usr/lib checking how to print strings... printf checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk checking command to parse /usr/bin/nm -B output from cc object... ok checking for sysroot... no checking for mt... mt checking if mt is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make /bin/bash /tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/libtool --mode=compile cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -o php_apn.lo libtool: compile: cc -I. -I/tmp/pear/temp/apn -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/include -I/tmp/pear/temp/pear-build-rootErIQ1T/apn-1.0.3/main -I/tmp/pear/temp/apn -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/include/capn -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/apn/php_apn.c -fPIC -DPIC -o .libs/php_apn.o /tmp/pear/temp/apn/php_apn.c:29:38: error: unknown type name 'apn_payload_ctx_ref' static zval *__php_apn_payload_array(apn_payload_ctx_ref payload TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function '__php_apn_dtor': /tmp/pear/temp/apn/php_apn.c:405:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: error: 'apn_ctx_ref' undeclared (first use in this function) apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:405:28: note: each undeclared identifier is reported only once for each function it appears in /tmp/pear/temp/apn/php_apn.c:405:41: error: expected ',' or ';' before 'rsrc' apn_ctx_ref apn_ctx = (apn_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:407:9: warning: passing argument 1 of 'apn_free' from incompatible pointer type [enabled by default] apn_free(&apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:201:21: note: expected 'struct apn_ctx_t *' but argument is of type 'int *' __apn_export__ void apn_free(apn_ctx_t *ctx); ^ /tmp/pear/temp/apn/php_apn.c: In function '__php_apn_payload_dtor': /tmp/pear/temp/apn/php_apn.c:412:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:44: error: 'apn_payload_ctx_ref' undeclared (first use in this function) apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:412:65: error: expected ',' or ';' before 'rsrc' apn_payload_ctx_ref apn_payload_ctx = (apn_payload_ctx_ref) rsrc->ptr; ^ /tmp/pear/temp/apn/php_apn.c:414:9: warning: passing argument 1 of 'apn_payload_free' from incompatible pointer type [enabled by default] apn_payload_free(&apn_payload_ctx); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:71:21: note: expected 'struct apn_payload_t *' but argument is of type 'int *' __apn_export__ void apn_payload_free(apn_payload_t *payload); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_init': /tmp/pear/temp/apn/php_apn.c:464:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:465:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:472:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:477:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, apn_ctx, le_apn); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void *' but argument is of type 'int' ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_connect': /tmp/pear/temp/apn/php_apn.c:484:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:485:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:492:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:502:5: warning: passing argument 1 of 'apn_connect' makes pointer from integer without a cast [enabled by default] if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:502:5: error: too many arguments to function 'apn_connect' if(apn_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:211:27: note: declared here __apn_export__ apn_return apn_connect(apn_ctx_t * const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *__s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:503:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_close': /tmp/pear/temp/apn/php_apn.c:513:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:521:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:523:5: warning: passing argument 1 of 'apn_close' makes pointer from integer without a cast [enabled by default] apn_close(apn_ctx); ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:219:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ void apn_close(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_free': /tmp/pear/temp/apn/php_apn.c:528:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:535:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_certificate': /tmp/pear/temp/apn/php_apn.c:548:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:550:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:556:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int *' __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:563:5: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, value, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:564:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_mode': /tmp/pear/temp/apn/php_apn.c:574:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:576:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:582:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:584:5: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:5: error: too many arguments to function 'apn_set_mode' if (apn_set_mode(apn_ctx, mode, NULL)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here __apn_export__ void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:584:9: error: void value not ignored as it ought to be if (apn_set_mode(apn_ctx, mode, NULL)) { ^ /tmp/pear/temp/apn/php_apn.c:585:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_private_key': /tmp/pear/temp/apn/php_apn.c:598:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:600:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:606:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:613:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set SSL private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:620:36: error: unknown type name 'apn_ctx_ref' static uint8_t __php_apn_add_token(apn_ctx_ref apn_ctx, const char *token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:635:37: error: unknown type name 'apn_ctx_ref' static uint8_t __php_apn_add_tokens(apn_ctx_ref apn_ctx TSRMLS_DC, zval *tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_token': /tmp/pear/temp/apn/php_apn.c:675:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:682:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_add_tokens': /tmp/pear/temp/apn/php_apn.c:692:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:700:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_set_array': /tmp/pear/temp/apn/php_apn.c:711:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:720:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:729:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 1 of 'apn_set_certificate' makes pointer from integer without a cast [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: warning: passing argument 3 of 'apn_set_certificate' from incompatible pointer type [enabled by default] if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: expected 'const char * const' but argument is of type 'int *' __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:751:21: error: too few arguments to function 'apn_set_certificate' if (apn_set_certificate(apn_ctx, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:279:27: note: declared here __apn_export__ apn_return apn_set_certificate(apn_ctx_t *const ctx, const char *const cert, const char *const key, const char *const pass) ^ /tmp/pear/temp/apn/php_apn.c:752:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set certificate: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:769:21: warning: passing argument 1 of 'apn_set_mode' makes pointer from integer without a cast [enabled by default] } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:21: error: too many arguments to function 'apn_set_mode' } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:243:21: note: declared here __apn_export__ void apn_set_mode(apn_ctx_t * const ctx, apn_connection_mode mode) ^ /tmp/pear/temp/apn/php_apn.c:769:32: error: void value not ignored as it ought to be } else if (apn_set_mode(apn_ctx, (uint8_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:770:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set mode: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:798:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set private key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_send': /tmp/pear/temp/apn/php_apn.c:814:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:817:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:818:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:825:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:826:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(payload_res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 1 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t **invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 2 of 'apn_send' makes pointer from integer without a cast [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'const struct apn_payload_t *' but argument is of type 'int' __apn_export__ apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t **invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: warning: passing argument 3 of 'apn_send' from incompatible pointer type [enabled by default] if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: expected 'struct apn_array_t *' but argument is of type 'int *' __apn_export__ apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t **invalid_tokens) ^ /tmp/pear/temp/apn/php_apn.c:835:5: error: too few arguments to function 'apn_send' if(apn_send(apn_ctx, payload, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:373:27: note: declared here __apn_export__ apn_return apn_send(apn_ctx_t * const ctx, const apn_payload_t *payload, apn_array_t *tokens, apn_array_t **invalid_tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *__s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:836:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c:838:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid token: %s", apn_error_invalid_token(error)); ^ /tmp/pear/temp/apn/php_apn.c: At top level: /tmp/pear/temp/apn/php_apn.c:849:44: error: unknown type name 'apn_payload_ctx_ref' static uint8_t __php_apn_payload_add_token(apn_payload_ctx_ref payload_ctx, const char *token, uint32_t token_length TSRMLS_DC) { ^ /tmp/pear/temp/apn/php_apn.c:864:45: error: unknown type name 'apn_payload_ctx_ref' static uint8_t __php_apn_payload_add_tokens(apn_payload_ctx_ref payload_ctx TSRMLS_DC, zval *tokens) { ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_init': /tmp/pear/temp/apn/php_apn.c:900:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:901:5: error: unknown type name 'apn_error' apn_error *error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:908:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to initialize: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:913:5: warning: passing argument 2 of 'zend_register_resource' makes pointer from integer without a cast [enabled by default] ZEND_REGISTER_RESOURCE(return_value, payload, le_payload); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:82:14: note: expected 'void *' but argument is of type 'int' ZEND_API int zend_register_resource(zval *rsrc_result, void *rsrc_pointer, int rsrc_type TSRMLS_DC); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_free': /tmp/pear/temp/apn/php_apn.c:918:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:925:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_badge': /tmp/pear/temp/apn/php_apn.c:937:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:939:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:945:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:947:5: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:947:5: error: too many arguments to function 'apn_payload_set_badge' if (apn_payload_set_badge(payload, (uint16_t)badge, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here __apn_export__ apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:948:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_body': /tmp/pear/temp/apn/php_apn.c:959:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:961:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:967:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:973:5: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body) ^ /tmp/pear/temp/apn/php_apn.c:973:5: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here __apn_export__ apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body) ^ /tmp/pear/temp/apn/php_apn.c:974:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set alert message: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_sound': /tmp/pear/temp/apn/php_apn.c:985:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:987:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:993:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:999:5: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound) ^ /tmp/pear/temp/apn/php_apn.c:999:5: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here __apn_export__ apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound) ^ /tmp/pear/temp/apn/php_apn.c:1000:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_key': /tmp/pear/temp/apn/php_apn.c:1012:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1017:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1023:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t * const' but argument is of type 'char **' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1037:5: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, value, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1038:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_launch_image': /tmp/pear/temp/apn/php_apn.c:1050:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1052:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1058:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1065:5: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image) ^ /tmp/pear/temp/apn/php_apn.c:1065:5: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image) ^ /tmp/pear/temp/apn/php_apn.c:1066:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_localized_action_key': /tmp/pear/temp/apn/php_apn.c:1078:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1080:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1086:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1093:5: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1093:5: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, value, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1094:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_custom_property': /tmp/pear/temp/apn/php_apn.c:1105:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1109:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1115:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1124:13: warning: passing argument 1 of 'apn_payload_add_custom_property_bool' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_bool(apn_payload_t *const payload, const char *const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1124:13: error: too many arguments to function 'apn_payload_add_custom_property_bool' apn_payload_add_custom_property_bool(payload, key, Z_BVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:256:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_bool(apn_payload_t *const payload, const char *const key, uint8_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: warning: passing argument 1 of 'apn_payload_add_custom_property_integer' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_integer(apn_payload_t *const payload, const char *const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1127:13: error: too many arguments to function 'apn_payload_add_custom_property_integer' apn_payload_add_custom_property_integer(payload, key, Z_LVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:242:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_integer(apn_payload_t *const payload, const char *const key, int64_t value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: warning: passing argument 1 of 'apn_payload_add_custom_property_double' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_double(apn_payload_t *const payload, const char *const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1130:13: error: too many arguments to function 'apn_payload_add_custom_property_double' apn_payload_add_custom_property_double(payload, key, Z_DVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:270:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_double(apn_payload_t *const payload, const char *const key, double value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: warning: passing argument 1 of 'apn_payload_add_custom_property_string' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char *const key, const char *value) ^ /tmp/pear/temp/apn/php_apn.c:1133:13: error: too many arguments to function 'apn_payload_add_custom_property_string' apn_payload_add_custom_property_string(payload, key, Z_STRVAL_P(value), &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:297:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_string(apn_payload_t * const payload, const char *const key, const char *value) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: warning: passing argument 1 of 'apn_payload_add_custom_property_null' makes pointer from integer without a cast [enabled by default] apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_add_custom_property_null(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1136:13: error: too many arguments to function 'apn_payload_add_custom_property_null' apn_payload_add_custom_property_null(payload, key, &error); ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:283:27: note: declared here __apn_export__ apn_return apn_payload_add_custom_property_null(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1144:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set custom property: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_expiry': /tmp/pear/temp/apn/php_apn.c:1155:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1157:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1163:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1165:5: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:5: error: too many arguments to function 'apn_payload_set_expiry' if (apn_payload_set_expiry(payload, expiry, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here __apn_export__ void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1165:9: error: void value not ignored as it ought to be if (apn_payload_set_expiry(payload, expiry, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1166:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_content_available': /tmp/pear/temp/apn/php_apn.c:1177:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1179:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1185:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1187:5: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:5: error: too many arguments to function 'apn_payload_set_content_available' if (apn_payload_set_content_available(payload, content_available, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here __apn_export__ void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1187:9: error: void value not ignored as it ought to be if (apn_payload_set_content_available(payload, content_available, &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1188:9: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_token': /tmp/pear/temp/apn/php_apn.c:1200:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1207:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_add_tokens': /tmp/pear/temp/apn/php_apn.c:1217:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1225:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_payload_set_array': /tmp/pear/temp/apn/php_apn.c:1236:5: error: unknown type name 'apn_payload_ctx_ref' apn_payload_ctx_ref payload = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1249:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:44:18: error: 'apn_payload_ctx_ref' undeclared (first use in this function) __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:44:39: note: in expansion of macro 'zend_list_find' __res = (apn_payload_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:45:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_payload) { \ ^ /tmp/pear/temp/apn/php_apn.c:1256:5: note: in expansion of macro 'PHP_APN_PAYLOAD_FETCH_RESOURCE' PHP_APN_PAYLOAD_FETCH_RESOURCE(payload, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1280:21: warning: passing argument 1 of 'apn_payload_set_expiry' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:21: error: too many arguments to function 'apn_payload_set_expiry' } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:83:21: note: declared here __apn_export__ void apn_payload_set_expiry(apn_payload_t * const payload, time_t expiry) ^ /tmp/pear/temp/apn/php_apn.c:1280:32: error: void value not ignored as it ought to be } else if (apn_payload_set_expiry(payload, (uint32_t)Z_LVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1281:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set expiry: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1290:21: warning: passing argument 1 of 'apn_payload_set_badge' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1290:21: error: too many arguments to function 'apn_payload_set_badge' } else if (apn_payload_set_badge(payload, (int32_t)Z_LVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:99:27: note: declared here __apn_export__ apn_return apn_payload_set_badge(apn_payload_t * const payload, int32_t badge) ^ /tmp/pear/temp/apn/php_apn.c:1291:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set badge: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1300:21: warning: passing argument 1 of 'apn_payload_set_content_available' makes pointer from integer without a cast [enabled by default] } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:21: error: too many arguments to function 'apn_payload_set_content_available' } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:129:21: note: declared here __apn_export__ void apn_payload_set_content_available(apn_payload_t *const payload, uint8_t content_available) ^ /tmp/pear/temp/apn/php_apn.c:1300:32: error: void value not ignored as it ought to be } else if (apn_payload_set_content_available(payload, (uint8_t)Z_BVAL_PP(array_item), &error)) { ^ /tmp/pear/temp/apn/php_apn.c:1301:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set content availability flag: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1308:21: warning: passing argument 1 of 'apn_payload_set_launch_image' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image) ^ /tmp/pear/temp/apn/php_apn.c:1308:21: error: too many arguments to function 'apn_payload_set_launch_image' if (apn_payload_set_launch_image(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:196:27: note: declared here __apn_export__ apn_return apn_payload_set_launch_image(apn_payload_t *const payload, const char *const image) ^ /tmp/pear/temp/apn/php_apn.c:1309:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set launch image file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1316:21: warning: passing argument 1 of 'apn_payload_set_localized_action_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1316:21: error: too many arguments to function 'apn_payload_set_localized_action_key' if (apn_payload_set_localized_action_key(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:178:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_action_key(apn_payload_t *const payload, const char *const key) ^ /tmp/pear/temp/apn/php_apn.c:1317:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized action key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1324:21: warning: passing argument 1 of 'apn_payload_set_sound' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound) ^ /tmp/pear/temp/apn/php_apn.c:1324:21: error: too many arguments to function 'apn_payload_set_sound' if (apn_payload_set_sound(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:115:27: note: declared here __apn_export__ apn_return apn_payload_set_sound(apn_payload_t * const payload, const char *const sound) ^ /tmp/pear/temp/apn/php_apn.c:1325:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set sound file name: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1332:21: warning: passing argument 1 of 'apn_payload_set_body' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body) ^ /tmp/pear/temp/apn/php_apn.c:1332:21: error: too many arguments to function 'apn_payload_set_body' if (apn_payload_set_body(payload, Z_STRVAL_PP(array_item), &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:159:27: note: declared here __apn_export__ apn_return apn_payload_set_body(apn_payload_t *const payload, const char *const body) ^ /tmp/pear/temp/apn/php_apn.c:1333:25: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set body: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 1 of 'apn_payload_set_localized_key' makes pointer from integer without a cast [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_payload_t * const' but argument is of type 'int' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: warning: passing argument 3 of 'apn_payload_set_localized_key' from incompatible pointer type [enabled by default] if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: expected 'struct apn_array_t * const' but argument is of type 'char **' __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1372:9: error: too many arguments to function 'apn_payload_set_localized_key' if (apn_payload_set_localized_key(payload, loc_key, args, args_count, &error)) { ^ In file included from /usr/include/capn/apn_binary_message.h:27:0, from /usr/include/capn/apn.h:27, from /tmp/pear/temp/apn/php_apn.h:22, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn_payload.h:215:27: note: declared here __apn_export__ apn_return apn_payload_set_localized_key(apn_payload_t *const payload, const char *const key, apn_array_t * const args) ^ /tmp/pear/temp/apn/php_apn.c:1373:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=] php_error_docref(NULL TSRMLS_CC, E_WARNING, "failed to set localized key: %s (%d)", apn_error_message(error), APN_ERR_CODE_WITHOUT_CLASS(apn_error_code(error))); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback_connect': /tmp/pear/temp/apn/php_apn.c:1386:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1387:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1394:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1404:5: warning: passing argument 1 of 'apn_feedback_connect' makes pointer from integer without a cast [enabled by default] if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: expected 'struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_feedback_connect(apn_ctx_t * const ctx) ^ /tmp/pear/temp/apn/php_apn.c:1404:5: error: too many arguments to function 'apn_feedback_connect' if(apn_feedback_connect(apn_ctx, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:385:27: note: declared here __apn_export__ apn_return apn_feedback_connect(apn_ctx_t * const ctx) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *__s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1405:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ /tmp/pear/temp/apn/php_apn.c: In function 'zif_apn_feedback': /tmp/pear/temp/apn/php_apn.c:1418:5: error: unknown type name 'apn_error_ref' apn_error_ref error = NULL; ^ /tmp/pear/temp/apn/php_apn.c:1422:5: error: unknown type name 'apn_ctx_ref' apn_ctx_ref apn_ctx = NULL; ^ /tmp/pear/temp/apn/php_apn.c:35:18: error: 'apn_ctx_ref' undeclared (first use in this function) __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ In file included from /usr/include/php5/Zend/zend_API.h:27:0, from /usr/include/php5/main/php.h:39, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_list.h:80:34: error: expected ';' before '_zend_list_find' #define zend_list_find(id, type) _zend_list_find(id, type TSRMLS_CC) ^ /tmp/pear/temp/apn/php_apn.c:35:31: note: in expansion of macro 'zend_list_find' __res = (apn_ctx_ref) zend_list_find(__res_id, &__rsrc_type); \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:36:19: warning: comparison between pointer and integer [enabled by default] if (NULL == __res || __rsrc_type != le_apn) { \ ^ /tmp/pear/temp/apn/php_apn.c:1430:5: note: in expansion of macro 'PHP_APN_FETCH_RESOURCE' PHP_APN_FETCH_RESOURCE(apn_ctx, Z_RESVAL_P(res), rsrc_type, RETURN_FALSE); ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 1 of 'apn_feedback' makes pointer from integer without a cast [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'const struct apn_ctx_t * const' but argument is of type 'int' __apn_export__ apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t **tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: warning: passing argument 2 of 'apn_feedback' from incompatible pointer type [enabled by default] if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: expected 'struct apn_array_t **' but argument is of type 'char ***' __apn_export__ apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t **tokens) ^ /tmp/pear/temp/apn/php_apn.c:1440:5: error: too many arguments to function 'apn_feedback' if(apn_feedback(apn_ctx, &tokens, &tokens_count, &error)) { ^ In file included from /tmp/pear/temp/apn/php_apn.h:22:0, from /tmp/pear/temp/apn/php_apn.c:27: /usr/include/capn/apn.h:399:27: note: declared here __apn_export__ apn_return apn_feedback(const apn_ctx_t * const ctx, apn_array_t **tokens) ^ In file included from /usr/include/php5/main/php.h:39:0, from /tmp/pear/temp/apn/php_apn.c:23: /usr/include/php5/Zend/zend_API.h:575:19: warning: initialization makes pointer from integer without a cast [enabled by default] const char *__s=(s); \ ^ /tmp/pear/temp/apn/php_apn.c:1441:9: note: in expansion of macro 'ZVAL_STRING' ZVAL_STRING(ref_error, apn_error_message(error), 1); ^ make: *** [phpapn.lo] Error 1 ERROR:make' failed

Segmentation Fault (11)

I am trying to use the module to send push notifications in my server.
I am using your example as the basis to send a push notification but when I call the function apn_send($apn, $payload, $error, $errcode) I got a segmentation fault (11) in Apache in Debian Wheezy.
Any clues on this?

Thank you.

Feature request: Ability to set "title" (child property of "alert") in payload

The "alert" key of the payload can be a dictionary with properties defined in table 5-2 in the Apple docs:

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/TheNotificationPayload.html#//apple_ref/doc/uid/TP40008194-CH107-SW4

Among the properties are "title" and "body" but currently only "body" is supported by php-apn.

title (string): A short string describing the purpose of the notification. Apple Watch displays this string as part of the notification interface. This string is displayed only briefly and should be crafted so that it can be understood quickly. This key was added in iOS 8.2.

body (string): The text of the alert message.

I suggest updating the function apn_payload_set_array to support "title" and adding a new function apn_payload_set_title to set it individually.

Need functions to set priority

We've updated the libcapn library recently on our servers from 1.0.0 to 1.1.0 and experienced the issue that notifications are not received properly by the devices.
From some tests, notifications are received only if the application is already open on the foreground.
After further investigations, I've found out that the issue is caused by a behavior change in the 1.1.0 release with the new priorities function (adobkin/libcapn@5c666af)
The default priority is set to "default" which cause the notifications not to be sent immediately (but by batch later or maybe never)
Unfortunately those new functions are not accessible from the php wrapper module, so we can't currently adapt the priority for devices to receive notifications immediately as before.
If this field was not sent in the previous version, the notification was considered to have high priority
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.