intelephense
1.14.41.16.1
lib/stub/ssh2/ssh2.phplib/stub/ssh2/ssh2.php+42−4
Index: package/lib/stub/ssh2/ssh2.php
===================================================================
--- package/lib/stub/ssh2/ssh2.php
+++ package/lib/stub/ssh2/ssh2.php
@@ -300,11 +300,36 @@
* @return bool true on success or false on failure.
*/
function ssh2_auth_hostbased_file($session, $username, $hostname, $pubkeyfile, $privkeyfile, $passphrase = null, $local_username = null) {}
-function ssh2_forward_listen() {}
+/**
+ * (PECL ssh2 >= 0.9.0)<br/>
+ * Bind a port on the remote server and listen for connections
+ * @link https://www.php.net/manual/en/function.ssh2-forward-listen.php
+ * @param resource $session <p>
+ * An SSH connection link identifier, obtained from a call to `ssh2_connect()`.
+ * </p>
+ * @param int $port <p>
+ * The port of the remote server.
+ * </p>
+ * @param string $host [optional] <p>
+ * </p>
+ * @param int $max_connections [optional] <p>
+ * </p>
+ * @return resource|false Returns an SSH2 Listener, or false on failure.
+ */
+function ssh2_forward_listen($session, $port, $host = null, $max_connections = 16) {}
-function ssh2_forward_accept() {}
+/**
+ * (PECL ssh2 >= 0.9.0)<br/>
+ * Accept a connection created by a listener
+ * @link https://www.php.net/manual/en/function.ssh2-forward-accept.php
+ * @param resource $listener <p>
+ * An SSH2 Listener resource, obtained from a call to ssh2_forward_listen().
+ * </p>
+ * @return resource|false Returns a stream resource, or false on failure.
+ */
+function ssh2_forward_accept($listener) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Request an interactive shell
@@ -436,11 +461,24 @@
*/
function ssh2_fetch_stream($channel, $streamid) {}
/**
- * @param array &$var1
+ * (PECL ssh2 >= 0.9.0)<br/>
+ * Poll the channels/listeners/streams for events
+ * @link https://www.php.net/manual/en/function.ssh2-poll.php
+ * @param array &$desc <p>
+ * An indexed array of subarrays with the keys 'resource' and 'events'.
+ * The value of the resource is a (channel) stream or an SSH2 Listener resource.
+ * The value of the event are SSH2_POLL* flags bitwise ORed together.
+ * Each subarray will be populated with an 'revents' element on return,
+ * whose values are SSH2_POLL* flags bitwise ORed together of the events that occurred.
+ * </p>
+ * @param int $timeout <p>
+ * The timeout in seconds.
+ * </p>
+ * @return int Returns the number of descriptors which returned non-zero revents.
*/
-function ssh2_poll(&$var1) {}
+function ssh2_poll(&$desc, $timeout = 30) {}
/**
* (PECL ssh2 >= 0.9.0)<br/>
* Initialize SFTP subsystem