note 125336 added to function.ssh2-disconnect
| From: | AntonFarber@php.net | Date: | Sat, 05 Sep 2020 19:57:50 +0000 |
| Subject: | note 125336 added to function.ssh2-disconnect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215080@lists.php.net to get a copy of this message | ||
This function worked fine as long as I didn't use any ssh2_sftp* stuff. As soon as I did, the
connection (from my webserver to my browser) was closed without any warning/error in any of the
logfiles. So, this won't work
<?php
// ssh2_connect and ssh2_auth etc...
$sftp = ssh2_sftp($connection);
ssh2_disconnect(); // Causes the connection to be reset
?>
while this works
<?php
// ssh2_connect and ssh2_auth etc...
$sftp = ssh2_sftp($connection);
$connection = null; unset($connection);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.167.36 (proxied: 89.217.180.222)
----
Manual Page -- http://php.net/manual/en/function.ssh2-disconnect.php
Edit -- https://master.php.net/note/edit/125336
Del: integrated -- https://master.php.net/note/delete/125336/integrated
Del: useless -- https://master.php.net/note/delete/125336/useless
Del: bad code -- https://master.php.net/note/delete/125336/bad+code
Del: spam -- https://master.php.net/note/delete/125336/spam
Del: non-english -- https://master.php.net/note/delete/125336/non-english
Del: in docs -- https://master.php.net/note/delete/125336/in+docs
Del: other reasons-- https://master.php.net/note/delete/125336
Reject -- https://master.php.net/note/reject/125336
Search -- https://master.php.net/manage/user-notes.php