amphp / ext-uv

Other
186 stars 28 forks source link

Latest commit does not compile #92

Open kelunik opened 3 years ago

kelunik commented 3 years ago

Error while compiling on Travis CI:

/home/travis/build/amphp/amp/php-uv/php_uv.c: In function ‘php_uv_zval_to_valid_poll_fd’:
/home/travis/build/amphp/amp/php-uv/php_uv.c:457:14: error: ‘php_sockets_le_socket_ptr’ undeclared (first use in this function)
   } else if (php_sockets_le_socket_ptr && (socket = (php_socket *) zend_fetch_r
              ^
/home/travis/build/amphp/amp/php-uv/php_uv.c:457:14: note: each undeclared identifier is reported only once for each function it appears in
/home/travis/build/amphp/amp/php-uv/php_uv.c:457:102: warning: implicit declaration of function ‘php_sockets_le_socket_ptr’ [-Wimplicit-function-declaration]
 t_ptr && (socket = (php_socket *) zend_fetch_resource_ex(ptr, NULL, php_sockets
                                                                     ^
/home/travis/build/amphp/amp/php-uv/php_uv.c: In function ‘php_uv_zval_to_fd’:
/home/travis/build/amphp/amp/php-uv/php_uv.c:487:14: error: ‘php_sockets_le_socket_ptr’ undeclared (first use in this function)
   } else if (php_sockets_le_socket_ptr && (socket = (php_socket *) zend_fetch_r
              ^
kelunik commented 3 years ago

Works fine if ext-sockets isn't compiled in.