kjdev / php-ext-handlersocketi

PHP HandlerSocket plugin for MySQL Improved Extension
Other
44 stars 14 forks source link

compile error under PHP7.0 #3

Open cidious opened 8 years ago

cidious commented 8 years ago

Hello, Compile error on fresh Ubuntu 16.04

# php -v|head -1
PHP 7.0.4-7ubuntu2 (cli) ( NTS )
# cat /etc/lsb-release |grep DESCRIPTION
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
# git clone https://github.com/kjdev/php-ext-handlersocketi.git
# cd php-ext-handlersocketi
# phpize
# ./configure
# make

/root/php-ext-handlersocketi/handlersocketi_exception.c: In function ‘handlersocketi_register_exception’:
/root/php-ext-handlersocketi/handlersocketi_exception.c:20:23: error: too many arguments to function ‘zend_register_internal_class_ex’
     hs_ce_exception = zend_register_internal_class_ex(
                       ^
In file included from /usr/include/php/20151012/main/php.h:40:0,
                 from /root/php-ext-handlersocketi/handlersocketi_exception.c:2:
/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here
 ZEND_API zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, zend_class_entry *parent_ce);
                            ^
Makefile:195: recipe for target 'handlersocketi_exception.lo' failed
make: *** [handlersocketi_exception.lo] Error 1
lesha888 commented 8 years ago

+1

# php -v|head -1
PHP 7.0.6 (cli) (built: May  4 2016 04:48:45) ( NTS )
#uname -a
Linux 2602b8bd7da3 3.11.0-20-generic #35~precise1-Ubuntu SMP Fri May 2 21:32:55 UTC 2014 x86_64 GNU/Linux
yuriikhalpin commented 7 years ago

# make /bin/sh /usr/src/php-ext-handlersocketi/libtool --mode=compile cc -I. -I/usr/src/php-ext-handlersocketi -DPHP_ATOM_INC -I/usr/src/php-ext-handlersocketi/include -I/usr/src/php-ext-handlersocketi/main -I/usr/src/php-ext-handlersocketi -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 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-ext-handlersocketi/handlersocketi_exception.c -o handlersocketi_exception.lo libtool: compile: cc -I. -I/usr/src/php-ext-handlersocketi -DPHP_ATOM_INC -I/usr/src/php-ext-handlersocketi/include -I/usr/src/php-ext-handlersocketi/main -I/usr/src/php-ext-handlersocketi -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 -DHAVE_CONFIG_H -g -O2 -c /usr/src/php-ext-handlersocketi/handlersocketi_exception.c -fPIC -DPIC -o .libs/handlersocketi_exception.o /usr/src/php-ext-handlersocketi/handlersocketi_exception.c: In function 'handlersocketi_register_exception': /usr/src/php-ext-handlersocketi/handlersocketi_exception.c:21:9: error: too many arguments to function 'zend_register_internal_class_ex' &ce, zend_exception_get_default(TSRMLS_C), NULL TSRMLS_CC); ^ In file included from /usr/include/php/main/php.h:39:0, from /usr/src/php-ext-handlersocketi/handlersocketi_exception.c:2: /usr/include/php/Zend/zend_API.h:290:28: note: declared here ZEND_API zend_class_entry zend_register_internal_class_ex(zend_class_entry class_entry, zend_class_entry *parent_ce); ^ make: *** [handlersocketi_exception.lo] Ошибка 1