|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-17 20:53 UTC] langemeijer@php.net
[2012-06-17 20:55 UTC] langemeijer@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: langemeijer
[2012-06-17 20:55 UTC] langemeijer@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 19:00:01 2025 UTC |
Description: ------------ PHP's chmod function doesn't work on remote files, i.e. calls like chmod("ssh2.sftp:// ...") do NOT work. Besides there is no function like ssh2_sftp_chmod which would allow to chmod files via SFTP directly. The provided patch adds a new PHP function "ssh2_sftp_chmod" which uses libssh2's libssh2_sftp_stat_ex to achieve that. Function signature is: bool ssh2_sftp_chmod(resource $sftp, string $dirname, int $mode) Returns true on success, false on error. cheers, Stefan Reproduce code: --------------- http://brokenpipe.de/misc/patches/ssh2-0.11.0+chmod.diff