Bug #76947 [NEW]: file_put_contents() blocks the directory of the file (__DIR__)
| From: | bugzilla77 at gmail dot com | Date: | Sat, 29 Sep 2018 10:39:52 +0000 |
| Subject: | Bug #76947 [NEW]: file_put_contents() blocks the directory of the file (__DIR__) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-217277@lists.php.net to get a copy of this message | ||
From: bugzilla77 at gmail dot com
Operating system: Windows 10 Pro 1803
PHP version: 7.3.0RC2
Package: *General Issues
Bug Type: Bug
Bug description:file_put_contents() blocks the directory of the file (__DIR__)
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 bug report at https://bugs.php.net/bug.php?id=76947&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76947&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76947&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76947&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76947&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76947&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76947&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76947&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76947&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76947&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76947&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76947&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76947&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76947&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76947&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76947&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76947&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76947&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76947&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76947&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76947&r=mysqlcfg