ZEND_BEGIN_MODULE_GLOBALS does not need zmq.h in php_zmq.h; it is a relic from an old idea. It should have been removed. I removed zmq.h from php_zmq.h.