Bug #76947 [Opn->Fbk]: file_put_contents() blocks the directory of the file (__DIR__)
| From: | requinix@php.net | Date: | Sat, 29 Sep 2018 18:01:16 +0000 |
| Subject: | Bug #76947 [Opn->Fbk]: file_put_contents() blocks the directory of the file (__DIR__) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217292@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76947&edit=1
ID: 76947
Updated by: requinix@php.net
Reported by: bugzilla77 at gmail dot com
Summary: file_put_contents() blocks the directory of the file
(__DIR__)
-Status: Open
+Status: Feedback
Type: Bug
Package: *General Issues
Operating System: Windows 10 Pro 1803
PHP Version: 7.3.0RC2
Block user comment: N
Private report: N
New Comment:
You say regression. Was this reported as a bug and fixed in the past?
Are you sure the problem is not that you have PHP running as a different user, and the created file
has ownership/permissions set that you cannot remove it and thus cannot delete its parent directory?
Previous Comments:
------------------------------------------------------------------------
[2018-09-29 10:39:52] bugzilla77 at gmail dot com
Description:
------------
file_put_contents() blocks the directory of the file (__DIR__)
This is PHP 7.3 beta and RC regression.
There is no problem with PHP 7.2.x.
1. Create file using file_put_contents()
2. Now, you can NOT remove the directory of the file (__DIR__).
It happens only when FastCGI using.
Test script:
---------------
<?php
// Windows 10 Pro 1803
// PHP 7.3RC2 NTS 64 bit
// Only FastCGI problem
// BUG: file_put_contents() blocks the directory of the file (__DIR__)
file_put_contents('temp.txt','');
// Now, try to remove manualy the directory of the file (__DIR__ with content)
// PHP 7.3.RC2 - you can not!
// PHP 7.2.10 - you can
?>
Expected result:
----------------
I can remove the directory of the file (__DIR__).
Actual result:
--------------
I can NOT remove the directory of the file (__DIR__).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76947&edit=1