Package Details: php-dio 0.2.1-1

Git Clone URL: https://aur.archlinux.org/php-dio.git (read-only, click to copy)
Package Base: php-dio
Description: POSIX direct I/O functions for PHP
Upstream URL: http://pecl.php.net/package/dio
Licenses: PHP
Submitter: adlerweb
Maintainer: adlerweb
Last Packager: adlerweb
Votes: 7
Popularity: 0.000000
First Submitted: 2010-04-29 19:33 (UTC)
Last Updated: 2022-09-29 12:13 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

i336 commented on 2016-05-24 13:42 (UTC)

I was idly curious about DIO so just tried to install this. I'm using PHP 7.0.6 (cli) (built: May 1 2016 07:39:38) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies and the compile exploded, as noted in full below for the benefit of search engines. Unfortunately I'm not actually sure whether the compile errors below are due to incompatibility with PHP 7 or some other issue. On the one hand, https://pecl.php.net/package/dio says "PHP 5.2 or newer", but that page also lists the latest release as 2013-02-19. On the other hand, all DIO pages in the documentation, eg http://php.net/dio_open, say "(PHP 4 >= 4.3.0, PHP 5 <= 5.0.5, PHP 7)". I've found that DIO isn't what I'm looking for, so I have no reason to pursue this further, and I'm leaving this here in case it helps someone else. --- cc -I. -I/tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7 -DPHP_ATOM_INC -I/tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/include -I/tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/main -I/tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -c /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c -fPIC -DPIC -o .libs/dio.o /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:75:27: error: unknown type name 'zend_rsrc_list_entry' static void _dio_close_fd(zend_rsrc_list_entry *rsrc TSRMLS_DC) ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_open': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:118:2: warning: implicit declaration of function 'ZEND_REGISTER_RESOURCE' [-Wimplicit-function-declaration] ZEND_REGISTER_RESOURCE(return_value, f, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_dup': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:164:2: warning: implicit declaration of function 'ZEND_FETCH_RESOURCE' [-Wimplicit-function-declaration] ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:164:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_read': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:195:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:212:29: error: macro "RETURN_STRINGL" passed 3 arguments, but takes just 2 RETURN_STRINGL(data, res, 0); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:212:2: error: 'RETURN_STRINGL' undeclared (first use in this function) RETURN_STRINGL(data, res, 0); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:212:2: note: each undeclared identifier is reported only once for each function it appears in /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_write': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:236:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_truncate': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:261:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_stat': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:287:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_seek': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:326:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_fcntl': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:347:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:362:28: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "start", sizeof("start"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:362:9: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "start", sizeof("start"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:362:74: warning: comparison between pointer and integer if (zend_hash_find(fh, "start", sizeof("start"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:365:19: warning: implicit declaration of function 'Z_LVAL_PP' [-Wimplicit-function-declaration] lk.l_start = Z_LVAL_PP(element); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:368:28: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "length", sizeof("length"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:368:9: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "length", sizeof("length"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:368:76: warning: comparison between pointer and integer if (zend_hash_find(fh, "length", sizeof("length"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:374:28: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "whence", sizeof("whence"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:374:9: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "whence", sizeof("whence"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:374:76: warning: comparison between pointer and integer if (zend_hash_find(fh, "whence", sizeof("whence"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:380:28: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "type", sizeof("type"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:380:9: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "type", sizeof("type"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:380:72: warning: comparison between pointer and integer if (zend_hash_find(fh, "type", sizeof("type"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_tcsetattr': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:457:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:466:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "baud", sizeof("baud"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:466:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "baud", sizeof("baud"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:466:69: warning: comparison between pointer and integer if (zend_hash_find(fh, "baud", sizeof("baud"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:472:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "bits", sizeof("bits"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:472:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "bits", sizeof("bits"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:472:69: warning: comparison between pointer and integer if (zend_hash_find(fh, "bits", sizeof("bits"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:478:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "stop", sizeof("stop"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:478:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "stop", sizeof("stop"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:478:69: warning: comparison between pointer and integer if (zend_hash_find(fh, "stop", sizeof("stop"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:484:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "parity", sizeof("parity"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:484:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "parity", sizeof("parity"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:484:73: warning: comparison between pointer and integer if (zend_hash_find(fh, "parity", sizeof("parity"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:490:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "flow_control", sizeof("flow_control"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:490:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "flow_control", sizeof("flow_control"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:490:85: warning: comparison between pointer and integer if (zend_hash_find(fh, "flow_control", sizeof("flow_control"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:496:25: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [-Wincompatible-pointer-types] if (zend_hash_find(fh, "is_canonical", sizeof("is_canonical"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: expected 'zend_string * {aka struct _zend_string *}' but argument is of type 'char *' ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:496:6: error: too many arguments to function 'zend_hash_find' if (zend_hash_find(fh, "is_canonical", sizeof("is_canonical"), (void **) &element) == FAILURE) { ^ In file included from /usr/include/php/Zend/zend.h:36:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_hash.h:154:30: note: declared here ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:496:85: warning: comparison between pointer and integer if (zend_hash_find(fh, "is_canonical", sizeof("is_canonical"), (void **) &element) == FAILURE) { ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zif_dio_close': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:642:25: error: expected expression before 'php_fd_t' ZEND_FETCH_RESOURCE(f, php_fd_t *, &r_fd, -1, le_fd_name, le_fd); ^ In file included from /usr/include/php/Zend/zend.h:31:0, from /usr/include/php/main/php.h:35, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_types.h:506:25: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [-Wint-conversion] #define Z_LVAL(zval) (zval).value.lval ^ /usr/include/php/Zend/zend_types.h:507:28: note: in expansion of macro 'Z_LVAL' #define Z_LVAL_P(zval_p) Z_LVAL(*(zval_p)) ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:644:19: note: in expansion of macro 'Z_LVAL_P' zend_list_delete(Z_LVAL_P(r_fd)); ^ In file included from /usr/include/php/Zend/zend_API.h:28:0, from /usr/include/php/main/php.h:39, from /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:24: /usr/include/php/Zend/zend_list.h:59:14: note: expected 'zend_resource * {aka struct _zend_resource *}' but argument is of type 'zend_long {aka long int}' ZEND_API int zend_list_delete(zend_resource *res); ^ /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c: In function 'zm_startup_dio': /tmp/pacaurtmp-i336/php-dio/src/dio-0.0.7/dio.c:834:44: error: '_dio_close_fd' undeclared (first use in this function) le_fd = zend_register_list_destructors_ex(_dio_close_fd, NULL, le_fd_name, module_number); ^ Makefile:193: recipe for target 'dio.lo' failed make: *** [dio.lo] Error 1 ==> ERROR: A failure occurred in build(). Aborting... :: failed to build php-dio package(s)