note 123413 added to function.ssh2-disconnect
| From: | Cavallo@php.net | Date: | Mon, 10 Dec 2018 10:07:03 +0000 |
| Subject: | note 123413 added to function.ssh2-disconnect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209866@lists.php.net to get a copy of this message | ||
ssh2_disconnect(...) requires at least PHP 7 (as it requires PECL ssh2 >= 1.0, which the PECL
documentation on https://pecl.php.net/package/ssh2
states: "ssh2 1.0 and above is PHP 7 only").
For PHP 5.x similar functionality, try setting the ssh2_connect session variable to null, or
unsetting it completely - this should allow PHP's garbage collection close the connection.
Example:
$session=ssh2_connect(...); // open connection
// code here to use connection
$session = null; unset($session); // close connection
----
Server IP: 208.43.231.9
Probable Submitter: 74.136.223.181
----
Manual Page -- http://php.net/manual/en/function.ssh2-disconnect.php
Edit -- https://master.php.net/note/edit/123413
Del: integrated -- https://master.php.net/note/delete/123413/integrated
Del: useless -- https://master.php.net/note/delete/123413/useless
Del: bad code -- https://master.php.net/note/delete/123413/bad+code
Del: spam -- https://master.php.net/note/delete/123413/spam
Del: non-english -- https://master.php.net/note/delete/123413/non-english
Del: in docs -- https://master.php.net/note/delete/123413/in+docs
Del: other reasons-- https://master.php.net/note/delete/123413
Reject -- https://master.php.net/note/reject/123413
Search -- https://master.php.net/manage/user-notes.php