Giter Club home page Giter Club logo

curl-swoole's People

Contributors

yumufeng avatar

Stargazers

 avatar

Watchers

 avatar

curl-swoole's Issues

升级swoole 4.4.12版本后报错

About pecl.php.net/swoole-4.4.12
================================
Release Type          PECL-style PHP extension (source code)
Name                  swoole
Channel               pecl.php.net
Summary               Event-driven asynchronous and concurrent
                      networking engine with high performance for PHP.
Description           Event-driven asynchronous and concurrent
                      networking engine with high performance for PHP.
                       - event-driven
                       - coroutine
                       - asynchronous non-blocking
                       - multi-thread reactor
                       - multi-process worker
                       - multi-protocol
                       - millisecond timer
                       - built-in http/websocket/http2 server
                       - coroutine http/websocket client
                       - coroutine mysql client
                       - coroutine redis client
                       - coroutine read/write file system
                       - coroutine dns lookup
                       - support IPv4/IPv6/UnixSocket/TCP/UDP
                       - support SSL/TLS encrypted transmission
Maintainers           Tianfeng Han <[email protected]> (lead)
                      Twosee <[email protected]> (developer)
                      Shen Zhe <[email protected]> (developer)
Release Date          2019-11-04 12:49:58
Release Version       4.4.12 (stable)
API Version           4.0 (stable)
License               Apache2.0
                      (http://www.apache.org/licenses/LICENSE-2.0.html)
Release Notes         New API
                      ---
                      + Runtime::getHookFlags (#2915) (@limingxinleo)

                      Enhancement
                      ---
                      + Support Websocket Compression on client-side
                      (#2937) (@twose)
                      + Support compress websocket message by frame
                      (#2937) (@twose)
                      + Optimized the detect logical of shortname
                      (#2935) (@sy-records)
                      + Better compression handler (Gzip and Brotli)
                      (#2928) (@twose)
                      + Reduce memory copy (#2893) (7fc93504)
                      (@hantaohuang) (@twose)
                      + Accepted connection will inherit the options
                      of server (#2898) (@twose)
                      + Coroutine\Http\Server support HTTP2 protocol
                      now (5479dbc4) (@matyhtf)
                      + Automatically add Content-Type header when use
                      sendfile (4e62bc52) (@matyhtf)
                      + Compatibility with Zend preloader (Special
                      thanks to PHP team) (#2899) (@twose)
                      + Implement RFC-7692 (#2906) (@matyhtf)
                      + Support PHP error control operators (#2916)
                      (@twose)
                      + Support socket_send_timeout option for sync
                      client (#2919) (@matyhtf)
                      + Support NPN (#2900) (@matyhtf)
                      + Improve HTTP proxy handshake request (#2922)
                      (@twose)

                      Fixed
                      ---
                      * Fixed AIO task num overflow (7038bdc1)
                      (@twose)
                      * Fixed gdbinit, support get backtrace info of
                      current stack (bd033e56) (@twose)
                      * Fixed Websocket Compression (ca818657)
                      (@matyhtf)
                      * Fixed compilation failure caused BrotliDecoder
                      (#2925) (@twose)
                      * Fixed memory error caused by compressing big
                      data (#2928) (@twose)
                      * Fixed #2890 (start a Process\Pool without
                      onWorkerStart event) (#2892) (@twose)
                      * Fixed the bug that close the connection in
                      non-current worker (#2891) (@matyhtf)
                      * Fixed memory error of create socket failure
                      (2948f10a) (@matyhtf)
                      * Fixed missing ssl_host_name of HTTPS proxy
                      (#2904) (@twose)
                      * Fixed CID-1466865 (#2923) (@tutanhamon)
Required Dependencies PHP version 7.1.0
                      PEAR installer version 1.4.0 or newer
package.xml version   2.0
Last Modified         2019-11-07 10:14
Previous Installed    - None -
Version

执行curl脚本操作报错

PHP Fatal error:  Uncaught Swoole\Error: API must be called in the coroutine in /projectpath/vendor/yumufeng/curl-swoole/src/Curl.php:110
Stack trace:
#0 /projectpath/vendor/yumufeng/curl-swoole/src/Curl.php(110): Swoole\Coroutine\Channel->pop()
#1 /projectpath/vendor/yumufeng/tbk-union-sdk/src/Tools/GateWay.php(67): yumufeng\curl\Curl::curl_post('https:/eco.tao...', Array)
#2 /projectpath/vendor/yumufeng/tbk-union-sdk/src/Api/Dg.php(58): TaobaoUnionSdk\Tools\GateWay->send('taobao.tbk.dg.m...', Array)
#3 /projectpath/index2.php(23): TaobaoUnionSdk\Api\Dg->material_optional(Array)
#4 {main}
  thrown in /projectpath/vendor/yumufeng/curl-swoole/src/Curl.php on line 110

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.