GithubHelp home page GithubHelp logo

php-ext-handlersocketi's People

Contributors

kjdev avatar qingflyster 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

Watchers

 avatar  avatar  avatar  avatar  avatar

php-ext-handlersocketi's Issues

compile error under PHP7.0

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

How to compile on Ubuntu

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

Class 'HandlerSocket' not found

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?

UPDATE

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);

compile error under PHP 7.1

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#

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.