Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7 install zmq-1.1.3 #187

Open
zhangjustin opened this issue Nov 24, 2017 · 1 comment
Open

php7 install zmq-1.1.3 #187

zhangjustin opened this issue Nov 24, 2017 · 1 comment

Comments

@zhangjustin
Copy link

I try to upgrade my php version from php5.6 to php7, try to update zmq to support php7,
when use pecl install zmq-1.1.3, it raise follow error:
image

environment:
centos6.8
msgpack_version:2.0.0
already install:autoconf, make, automake, gcc, libtool.

I am glad to hear your voice.

@LarkinKin
Copy link

LarkinKin commented Jun 14, 2018

修改~/zmq-1.1.3/zmq_pollset.c:42
typedef struct _php_zmq_pollset {

    zmq_pollitem_t *items;
    zend_string **keys;
    zval *zv;

    size_t num_items;
    size_t allocated;
    size_t alloc_size;

    zval errors;

} php_zmq_pollset;
改成
struct _php_zmq_pollset {

    zmq_pollitem_t *items;
    zend_string **keys;
    zval *zv;

    size_t num_items;
    size_t allocated;
    size_t alloc_size;

    zval errors;

};
可以编译通过,不过7.1.3下会导致core dump。7.2.6下不报错,还没测试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants