note 123986 added to function.ssh2-disconnect

From: Date: Thu, 27 Jun 2019 07:55:49 +0000
Subject: note 123986 added to function.ssh2-disconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-211394@lists.php.net to get a copy of this message
Note that if you have opened SFTP connection then you should close it before calling ssh2_disconnect() to prevent "segmentation fault" or "php: channel.c:2570: _libssh2_channel_free: Assertion `session' failed. Aborted" error. PHP SSH2 extension doesn't have special method for this, so just use: unset($sftp); or $sftp = null; ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.195 (proxied: 5.199.200.208) ---- Manual Page -- http://php.net/manual/en/function.ssh2-disconnect.php Edit -- https://master.php.net/note/edit/123986 Del: integrated -- https://master.php.net/note/delete/123986/integrated Del: useless -- https://master.php.net/note/delete/123986/useless Del: bad code -- https://master.php.net/note/delete/123986/bad+code Del: spam -- https://master.php.net/note/delete/123986/spam Del: non-english -- https://master.php.net/note/delete/123986/non-english Del: in docs -- https://master.php.net/note/delete/123986/in+docs Del: other reasons-- https://master.php.net/note/delete/123986 Reject -- https://master.php.net/note/reject/123986 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#211394) next »