|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-09-29 18:01 UTC] requinix@php.net
-Status: Open
+Status: Feedback
[2018-09-29 18:01 UTC] requinix@php.net
[2018-09-30 17:58 UTC] bugzilla77 at gmail dot com
-Status: Feedback
+Status: Open
[2018-09-30 17:58 UTC] bugzilla77 at gmail dot com
[2018-09-30 18:02 UTC] bugzilla77 at gmail dot com
[2018-09-30 18:19 UTC] bugzilla77 at gmail dot com
[2018-09-30 18:20 UTC] bugzilla77 at gmail dot com
[2018-10-02 22:22 UTC] ab@php.net
[2018-10-02 22:22 UTC] ab@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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__).