295 Commits

Author SHA1 Message Date
Gerdriaan Mulder
5167e58cd7 Typofix (php_ssh2_fopen_wraper_parse_path -> php_ssh2_fopen_wrapper_parse_path) 2025-11-23 12:41:43 +01:00
Gerdriaan Mulder
c2ef717b64 Fix [s]size_t types in ssh2_scp_send, also check written bytes in ssh2_scp_recv 2025-11-23 12:40:29 +01:00
Fernando Herrero
fec7b7964a Remove php-7.x branches 2025-11-23 12:36:27 +01:00
Fernando Herrero
e87ed4d502 Added php-8.4 branch 2025-11-23 12:36:27 +01:00
Fernando Herrero
dde47d6166 Publish artifacts as zip 2025-11-23 12:36:27 +01:00
Mai-Lapyst
118acefe3f Fix sftp streamwrapper not correctly handeling freestanding urls; fixes #85 2025-11-23 12:29:32 +01:00
Christian Weiske
a0621be852 Fix call to ssh2_auth_pubkey() without password
Port of the previous fix for ssh2_auth_pubkey_file() to
the passwordless function introduced after that patch.

Related: https://bugs.php.net/bug.php?id=79702
2025-11-23 12:25:11 +01:00
Thomas
10ca442ab2 Fix call to ssh2_auth_pubkey_file() without password
Patch taken from
https://bugs.php.net/patch-display.php?bug=79702&patch=ssh2_fix_nullpointer_deref.patch&revision=1617965812
by thomas at shadowweb dot org

Resolves: https://bugs.php.net/bug.php?id=79702
2025-11-23 12:25:11 +01:00
Derick Rethans
65c0da1b18 Fix version declaration 1.4.1 2024-02-10 00:50:53 +00:00
Derick Rethans
57d2765407 Go with 1.4.1 2024-02-09 18:29:34 +00:00
Derick Rethans
79c4a12d11 Merged pull request #75 2024-02-09 18:19:58 +00:00
Derick Rethans
26219a690d Bump checkout action as it's outdated 2024-02-09 09:47:55 +00:00
Derick Rethans
486c13eebb Also attach artefacts to release tags, if we have one 2024-02-09 09:45:52 +00:00
Derick Rethans
c49160e929 We also need openssl 2024-02-09 00:54:37 +00:00
Derick Rethans
59b3081b8b v0.8 of setup-php-sdk 2024-02-09 00:49:34 +00:00
Derick Rethans
91d1110601 Add zlib dep and 8.3 2024-02-09 00:48:58 +00:00
Derick Rethans
a05000fba9 Attempt windows builds 2024-02-09 00:38:48 +00:00
Casper Langemeijer
5906d41e3e Merge pull request #67: End zend_function_entry ssh2_functions list with PHP_FE_END 2023-07-14 19:27:53 +02:00
Casper Langemeijer
2f223e9dc8 Merge pull request #66: Remove implicit switch-case fallthrough 2023-07-14 19:26:51 +02:00
Gerdriaan Mulder
4d0f780425 End zend_function_entry ssh2_functions list with PHP_FE_END 2023-05-08 17:15:20 +02:00
Gerdriaan Mulder
9044d88458 ssh2_sftp: remove implicit switch-case fallthrough in stream_seek 2023-05-08 17:07:08 +02:00
Casper Langemeijer
520e1f0810 Increase version 2023-04-15 16:28:10 +02:00
Casper Langemeijer
a90d5e9759 New release: 1.4 2023-04-15 16:21:48 +02:00
Casper Langemeijer
bc958f69d9 Merge pull request #56 2023-04-15 15:28:00 +02:00
Andreas Treichel
eec58e1271 Update test for ssh2_auth_pubkey 2021-05-30 04:14:43 +02:00
Andreas Treichel
e690abe9e7 Add ssh2_auth_pubkey to allow public and private keys as strings 2021-05-27 23:46:21 +02:00
Casper Langemeijer
5c08a92cdd Merge pull request 55: Add ssh2_shell_resize() 2021-04-18 12:28:58 +02:00
ax
83da7146c7 add ssh2_shell_resize function 2021-04-14 03:18:33 +08:00
Casper Langemeijer
1e1fb1be94 Update readme 2021-03-03 09:00:49 +01:00
Casper Langemeijer
ec4818971a Increase version to allow for new release 2021-03-02 12:01:32 +01:00
Casper Langemeijer
bd5f5c2c8c New release: 1.3 2021-03-01 21:25:39 +01:00
Casper Langemeijer
2403cda57d Remove max version. 8.0 is now supported. 2021-03-01 21:25:39 +01:00
Casper Langemeijer
37bdf77458 Revert "Make sure we are allowed to call the given callable"
IS_CALLABLE_CHECK_NO_ACCESS is Removed from PHP 8.0.

This reverts commit a73cba756c.
2021-03-01 21:14:53 +01:00
Casper Langemeijer
54098d45ba Simply php_error_docref() fixes compilation error 2021-03-01 18:08:44 +01:00
Casper Langemeijer
a8fc28fbcc Merge pull request 53: Add testing for 8.0 2021-02-25 22:15:59 +01:00
Casper Langemeijer
cd171297c9 Added testing for 8.0 2021-02-25 21:41:32 +01:00
Casper Langemeijer
cabe6b33f2 Use ZVAL_COPY() macro to copy zval and increment reference counter 2021-02-25 21:21:29 +01:00
Casper Langemeijer
a73cba756c Make sure we are allowed to call the given callable 2021-02-25 21:10:31 +01:00
Casper Langemeijer
dfea519a82 Call return value destructor for unused return value 2021-02-25 21:02:09 +01:00
Casper Langemeijer
efcc6cb45d Use correct callback function 2021-02-25 21:00:32 +01:00
Casper Langemeijer
27ca5416be Merge pull request #51: Fix #80729: ssh2_shell() streams are not stream_select()able 2021-02-24 22:05:53 +01:00
Casper Langemeijer
cd6eae40e4 Merge pull request #50: Fix line ending in test case when running on Windows 2021-02-24 22:05:28 +01:00
Casper Langemeijer
6af6094d59 Merge pull request #49: Fix #75523: stream_set_timeout(): No support for ssh2 stream timeout 2021-02-24 22:04:16 +01:00
Casper Langemeijer
78d953ef9e Merge pull request #48: Fix #80294: ssh2 wrappers not using an allocated resource segfault 2021-02-24 22:03:52 +01:00
Casper Langemeijer
1432b041e7 Merge pull request #47: Fix #63480: Warning on using the SSH2 Session resource in the uri 2021-02-24 22:03:19 +01:00
Casper Langemeijer
8cbe872d19 Merge pull request #46: Fix #79631: SSH disconnect segfault with SFTP (assertion failed) 2021-02-24 18:14:48 +01:00
Christoph M. Becker
d658eb81d4 Fix another test case with the same issue
Sorry, didn't notice that earlier due to bug #80729.
2021-02-10 19:07:16 +01:00
Christoph M. Becker
478edd029a Fix #80729: ssh2_shell() streams are not stream_select()able
On Windows, the socket type is not an `int` but rather `SOCKET` which
is actually `unsigned int` on x86 and `unsigned __int64` on x64.  To
cater to this type mismatch, PHP offers the portable `php_socket_t` (at
least as of PHP 5.0.0).  We use it for `php_ssh2_session_data` as well.
2021-02-10 18:53:45 +01:00
Christoph M. Becker
0173ac4e95 Fix line ending in test case when running on Windows
This test case executes `cat` and uses `PHP_EOL` as line ending.  This
causes the test to fail when executed on Windows connected to a Linux
SSH server.  Since `cat` is usually not available on Windows, running
the test would fail if a Windows SSH server was used.  Thus, we can
easily fix this by always using LF.
2021-02-10 17:46:13 +01:00
Christoph M. Becker
717170e90e Fix #75523: stream_set_timeout(): No support for ssh2 stream timeout
Obviously, the appropriate define is not done in config.w32, although
libssh2 1.4.2 is available for Windows builds as of 2012-09-20.  For
current PHP versions libssh2 1.9.0 is used on Windows.
2021-02-10 17:26:57 +01:00