You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat run.php
<?php
require __DIR__.'/vendor/autoload.php';
$ck = new \OneCk\Client('tcp://localhost:9000', 'default', '', 'switch');
$ck->__destruct();
$ php run.php
PHP Warning: stream_socket_shutdown(): supplied resource is not a valid stream resource in /home/arie/works/onck/vendor/lizhichao/one-ck/src/Client.php on line 81
PHP Warning: fclose(): supplied resource is not a valid stream resource in /home/arie/works/onck/vendor/lizhichao/one-ck/src/Client.php on line 82
environments:
$ php -v
PHP 7.4.28 (cli) (built: Feb 26 2022 06:29:20) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
$ grep 'one-ck' composer.json
"lizhichao/one-ck": "^0.2.9
The text was updated successfully, but these errors were encountered:
__ destruct() was executed twice __ destruct is a special function that will be called automatically when ` $ck 'is destroyed. You don't need to call it
script:
environments:
The text was updated successfully, but these errors were encountered: