Bug #75261 [NEW]: cURL sftp regression

From: Date: Tue, 26 Sep 2017 14:37:46 +0000
Subject: Bug #75261 [NEW]: cURL sftp regression
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211364@lists.php.net to get a copy of this message
From: b dot collin at immanens dot com Operating system: Windows PHP version: 7.1.9 Package: cURL related Bug Type: Bug Bug description:cURL sftp regression Description: ------------ I think that php 7.1 introduce a curl regression with the sftp protocol. Below, a short script that work in php until 7.0.x, and produce an error message "Could not resolve host: xxxxx" where xxxxx is the username and not the host ! I check several version, php <= 7.0.x seem to be ok. php 7.1.9, 7.1.10RC1 and 7.2.0RC2 are ko. Test script: --------------- $host = 'myhost.sftphost.test:22'; $user = 'myuser'; $password = 'mypassword'; $path = '/path/toexplore/'; $c = curl_init('sftp://'.$user.':'.$password.'@'.$host.$path); curl_setopt($c, CURLOPT_PROTOCOLS, CURLPROTO_SFTP); curl_setopt($c, CURLOPT_FTPLISTONLY, true); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($c); print "curl message : ".curl_error($c)."\n"; print "data : ".var_dump($data); Expected result: ---------------- If the config is ok, we should obtain the list of file from the sftp server whithout error. -- Edit bug report at https://bugs.php.net/bug.php?id=75261&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75261&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75261&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75261&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75261&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75261&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75261&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75261&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75261&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75261&r=support Expected behavior: https://bugs.php.net/fix.php?id=75261&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75261&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75261&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75261&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75261&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75261&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75261&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75261&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75261&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75261&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75261&r=mysqlcfg

« previous php.bugs (#211364) next »