Bug #77680 [NEW]: recursive mkdir on ftp stream wrapper is incorrect

From: Date: Thu, 28 Feb 2019 12:38:21 +0000
Subject: Bug #77680 [NEW]: recursive mkdir on ftp stream wrapper is incorrect
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-219763@lists.php.net to get a copy of this message
From: calin dot don at gmail dot com Operating system: PHP version: Irrelevant Package: Directory function related Bug Type: Bug Bug description:recursive mkdir on ftp stream wrapper is incorrect Description: ------------ Recursive mkdir on ftp stream wrapper is incorrectly implemented. It issues a CWD and MKD without a required path parameter for the root folder. Test script: --------------- <?php mkdir("ftp://localhost:2121/one/two", 0755, true); Expected result: ---------------- Recursively create the directory structure. Actual result: -------------- Fails becuase it creates invalid sequence of ftp commands: 2019/02/28 13:43:12 INFO : f91b572012ab40453052: > CWD /one 2019/02/28 13:43:13 INFO : f91b572012ab40453052: < 550 Directory change to /one failed: file does not exist 2019/02/28 13:43:13 INFO : f91b572012ab40453052: > CWD 2019/02/28 13:43:13 INFO : f91b572012ab40453052: < 553 action aborted, required param missing 2019/02/28 13:43:13 INFO : f91b572012ab40453052: > MKD 2019/02/28 13:43:13 INFO : f91b572012ab40453052: < 553 action aborted, required param missing -- Edit bug report at https://bugs.php.net/bug.php?id=77680&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77680&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77680&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77680&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77680&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77680&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77680&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77680&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77680&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77680&r=support Expected behavior: https://bugs.php.net/fix.php?id=77680&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77680&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77680&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77680&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77680&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77680&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77680&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77680&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77680&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77680&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77680&r=mysqlcfg

« previous php.bugs (#219763) next »