{"action":"created","issue":{"url":"https://api.github.com/repos/Herzult/php-ssh/issues/42","labels_url":"https://api.github.com/repos/Herzult/php-ssh/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Herzult/php-ssh/issues/42/comments","events_url":"https://api.github.com/repos/Herzult/php-ssh/issues/42/events","html_url":"https://github.com/Herzult/php-ssh/issues/42","id":57465684,"number":42,"title":"SFTP - Error when sending file","user":{"login":"anthonyherve","id":1899492,"avatar_url":"https://avatars.githubusercontent.com/u/1899492?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyherve","html_url":"https://github.com/anthonyherve","followers_url":"https://api.github.com/users/anthonyherve/followers","following_url":"https://api.github.com/users/anthonyherve/following{/other_user}","gists_url":"https://api.github.com/users/anthonyherve/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyherve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyherve/subscriptions","organizations_url":"https://api.github.com/users/anthonyherve/orgs","repos_url":"https://api.github.com/users/anthonyherve/repos","events_url":"https://api.github.com/users/anthonyherve/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyherve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-12T14:21:02Z","updated_at":"2015-02-13T10:31:45Z","closed_at":null,"body":"Hello,\r\n\r\nI have a problem when I want to send a file through SFTP. This is the following.\r\n\r\n[Symfony\\Component\\Debug\\Exception\\ContextErrorException]\r\n  Warning: file_put_contents(): Unable to open ssh2.sftp://Resource id #568/${path_remote} on remote host\r\n\r\nHere is my code : \r\n\r\n$configuration = new Configuration('url');\r\n$authentication = new Password('username', 'password');\r\n$session = new Session($configuration, $authentication);\r\n$sftp = $session->getSftp();\r\n$sftp->send(\"local_file\", \"remote_file\");\r\n\r\nError is on the last line.\r\n\r\nCan you help me please ?\r\n\r\nThanks.\r\n\r\nAnthony"},"comment":{"url":"https://api.github.com/repos/Herzult/php-ssh/issues/comments/74234015","html_url":"https://github.com/Herzult/php-ssh/issues/42#issuecomment-74234015","issue_url":"https://api.github.com/repos/Herzult/php-ssh/issues/42","id":74234015,"user":{"login":"h4cc","id":2981491,"avatar_url":"https://avatars.githubusercontent.com/u/2981491?v=3","gravatar_id":"","url":"https://api.github.com/users/h4cc","html_url":"https://github.com/h4cc","followers_url":"https://api.github.com/users/h4cc/followers","following_url":"https://api.github.com/users/h4cc/following{/other_user}","gists_url":"https://api.github.com/users/h4cc/gists{/gist_id}","starred_url":"https://api.github.com/users/h4cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4cc/subscriptions","organizations_url":"https://api.github.com/users/h4cc/orgs","repos_url":"https://api.github.com/users/h4cc/repos","events_url":"https://api.github.com/users/h4cc/events{/privacy}","received_events_url":"https://api.github.com/users/h4cc/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T10:31:45Z","updated_at":"2015-02-13T10:31:45Z","body":"I reran the last travis builds, and the functional tests there worked: https://travis-ci.org/Herzult/php-ssh/builds/49846322\r\n\r\nEvent against our PHP Versions 5.5.21 and 5.6.5.\r\n\r\nI honestly dont know whats wrong here :weary: "}}