ext-async icon indicating copy to clipboard operation
ext-async copied to clipboard

Asynchronous callback client

Results 20 ext-async issues
Sort by recently updated
recently updated
newest added

/bin/sh /Users/jerrychan/Study/swoole/tmp/async-ext/libtool --mode=compile g++ -I. -I/Users/jerrychan/Study/swoole/tmp/async-ext -DPHP_ATOM_INC -I/Users/jerrychan/Study/swoole/tmp/async-ext/include -I/Users/jerrychan/Study/swoole/tmp/async-ext/main -I/Users/jerrychan/Study/swoole/tmp/async-ext -I/usr/local/Cellar/php/7.3.10/include/php -I/usr/local/Cellar/php/7.3.10/include/php/main -I/usr/local/Cellar/php/7.3.10/include/php/TSRM -I/usr/local/Cellar/php/7.3.10/include/php/Zend -I/usr/local/Cellar/php/7.3.10/include/php/ext -I/usr/local/Cellar/php/7.3.10/include/php/ext/date/lib -I/Users/jerrychan/Study/swoole/tmp/async-ext -I/Users/jerrychan/Study/swoole/tmp/async-ext/include -I/usr/local/Cellar/php/7.3.10/include/php/ext/swoole -I/usr/local/Cellar/php/7.3.10/include/php/ext/swoole/include -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/jerrychan/Study/swoole/tmp/async-ext/swoole_http_client.cc...

### extension swoole and swoole_async ![image](https://user-images.githubusercontent.com/6140347/76386969-b9b84580-63a0-11ea-88ad-4b3be3d47a1b.png) ### the php code ```php

$cli = new swoole_http_client('127.0.0.1', 80); $result = $cli->post('/test.php', ["a" => "a"], function ($cli) { //回调函数没有响应 echo "Length: " . strlen($cli->body) . "\n"; var_dump($cli); echo $cli->body; });

# kun @ MacBook-Pro in ~/Downloads [16:15:24] $ git clone https://github.com/swoole/ext-async.git Cloning into 'ext-async'... remote: Enumerating objects: 208, done. remote: Counting objects: 100% (208/208), done. remote: Compressing objects: 100% (147/147),...

Dockerfile ``` # # php-phalcon 7.2 Dockerfile # FROM php:7.2-cli MAINTAINER Dongasai [email protected] #更新apt-get源 使用163的源 buster/updates RUN echo "deb http://mirrors.163.com/debian/ buster main non-free contrib" > /etc/apt/sources.list && \ echo "deb...

PHP Startup: Unable to load dynamic library 'swoole_async.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so: undefined symbol: swAio_handler_read), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/swoole_async.so.so: cannot open shared object file: No such file or directory)) in Unknown on line...

![图片](https://user-images.githubusercontent.com/4216706/64484226-c87f3d80-d241-11e9-8837-7444295b35ba.png) when I make the extension then see the problem like above .

I have a problem using `$client->connect('unix:/var/run/redis/redis-server.sock')` connect to redis server failed. $errCode: 22 $errMsg: Invalid argument Php back-end use this path to connect redis `/var/run/redis/redis-server.sock` and it successfully works

make error detail: ``` /Users/project/async-ext/swoole_async.cc:189:55: error: use of undeclared identifier 'sw_zend_class_unset_property_deny'; did you mean 'php_swoole_class_unset_property_deny'? SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_async, sw_zend_class_unset_property_deny); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ php_swoole_class_unset_property_deny /Users/project/soft/php/include/php/ext/swoole/php_swoole.h:765:40: note: expanded from macro 'SW_SET_CLASS_UNSET_PROPERTY_HANDLER' module##_handlers.unset_property = _unset_property ^ /Users/project/soft/php/include/php/ext/swoole/php_swoole.h:479:6:...

I asked this question here https://github.com/swoole/swoole-src/issues/2548 But perhaps it's better asked here. Please answer these questions before submitting your issue. Thanks! What did you do? If possible, provide a simple...