Bug #77765 [Opn]: FTP stream wrapper should set the directory as executable
| From: | cmb@php.net | Date: | Mon, 18 Mar 2019 14:49:43 +0000 |
| Subject: | Bug #77765 [Opn]: FTP stream wrapper should set the directory as executable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220048@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77765&edit=1
ID: 77765
Updated by: cmb@php.net
Reported by: calin at presslabs dot com
Summary: FTP stream wrapper should set the directory as
executable
Status: Open
Type: Bug
-Package: *Directory/Filesystem functions
+Package: Streams related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
For reference: <https://github.com/php/php-src/blob/86ba2084997de2520c901b4ab9c8efc7444de76f/ext/standard/ftp_fopen_wrapper.c#L801-L808>.
Previous Comments:
------------------------------------------------------------------------
[2019-03-18 14:43:34] calin at presslabs dot com
Description:
------------
The ftp stream wrapper now sets the stat for directory to 40644. It should also set the executable
bit, because the directory bit is set after cd-ing into that directory. The final permission should
be 40755.
See ext/standard/ftp_fopen_wrapper.c lines 801-808.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77765&edit=1