kjdev / php-ext-handlersocketi Goto Github PK
View Code? Open in Web Editor NEWPHP HandlerSocket plugin for MySQL Improved Extension
License: Other
PHP HandlerSocket plugin for MySQL Improved Extension
License: Other
I've checked source codes here; https://github.com/kjdev/php-ext-handlersocketi/blob/master/handlersocketi_index.c but can't find anything related to IN ...
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
Hi,
I just found out about this, and is confused about how it works. How does one compile this for PHP 5.6? Would be great if the README could be updated to have the basic setup and installation.
Cheers
Hi,
After building, installing and restarting apache2. I'm still getting this error Error: Class 'HandlerSocket' not found in
.
Did I do something wrong? How do I verify that the extension got properly installed?
I also checked phpinfo()
. It shows me:
handlersocketi
handlersocketi support enabled
extension version 0.0.1
This is the line that gives the error:
$hs = new \HandlerSocket($this->host, $this->port, $this->options);
In file included from /usr/include/php/20160303/Zend/zend.h:36:0,
from /usr/include/php/20160303/main/php.h:36,
from /tmp/handlersocket/handlersocket.cc:7:
/usr/include/php/20160303/Zend/zend_hash.h:163:30: note: declared here
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable ht, zend_ulong h);
^
/tmp/handlersocket/handlersocket.cc:3326:57: error: no match for 'operator==' (operand types are 'zval {aka _zval_struct*}' and 'ZEND_RESULT_CODE')
HASH_OF(rmodify), i, (void )&tmp) == SUCCESS)
^
/tmp/handlersocket/handlersocket.cc:3328:39: error: 'Z_LVAL_PP' was not declared in this scope
modify = Z_LVAL_PP(tmp);
^
/tmp/handlersocket/handlersocket.cc:3339:51: error: too many arguments to function 'int add_next_index_stringl(zval, const char, size_t)'
hs->cli->get_error().size(), 1);
^
In file included from /usr/include/php/20160303/main/php.h:40:0,
from /tmp/handlersocket/handlersocket.cc:7:
/usr/include/php/20160303/Zend/zend_API.h:438:14: note: declared here
ZEND_API int add_next_index_stringl(zval arg, const char str, size_t length);
^
In file included from /usr/include/php/20160303/Zend/zend.h:39:0,
from /usr/include/php/20160303/main/php.h:36,
from /tmp/handlersocket/handlersocket.cc:7:
/usr/include/php/20160303/Zend/zend_variables.h:110:76: error: cannot convert 'zval {aka _zval_struct**}' to 'zval* {aka _zval_struct*}' for argument '1' to 'void _zval_ptr_dtor(zval*)'
#define zval_ptr_dtor(zval_ptr) _zval_ptr_dtor((zval_ptr) ZEND_FILE_LINE_CC)
^
/tmp/handlersocket/handlersocket.cc:3356:5: note: in expansion of macro 'zval_ptr_dtor'
zval_ptr_dtor(&rmodify);
^
Makefile:194: recipe for target 'handlersocket.lo' failed
make: *** [handlersocket.lo] Error 1
root@dev:/tmp/handlersocket#
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.