Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SFTP getUrl function for PHP >= 5.6.28 #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IanSimpson
Copy link

PHP 5.6.28 made an (apparently undocumented) change for scanning an SFTP directory. Previously the URL was created by casting the Resource as a string ("Resource #27"), now it requires it to be cast as an int ("27").

Previously this function returned ssh2.sftp://Resource #27/my/url, now returns ssh2.sftp://27/my/url.

The "new" method has been tested in 5.6.26 and still works correctly (as well as 5.6.29 and 7.0.14).

PHP 5.6.28 made an (apparently undocumented) change for scanning an SFTP directory. Previously the URL was created by casting the Resource as a string ("Resource Herzult#27"), now it requires it to be cast as an int ("27"). 

Previously this function returned ssh2.sftp://Resource Herzult#27/my/url, now returns ssh2.sftp://27/my/url.

The "new" method has been tested in 5.6.26 and still works correctly (as well as 5.6.29 and 7.0.14).
This was referenced Jul 2, 2017
@GinoPane
Copy link

@Herzult is it going to be merged? It is a required change for the lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants