|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesfix-77680 (last revision 2019-03-01 15:47 UTC by cmb@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-03-01 15:47 UTC] cmb@php.net
[2019-03-25 16:46 UTC] nikic@php.net
[2019-03-25 16:46 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
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