Opened 16 years ago
Closed 16 years ago
#13683 closed defect (bug) (fixed)
Add clearstatcache for fix a bug on specific configuration
| Reported by: | momo360modena | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Import | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
This bug is present on the configuration of this ticket ticket:13659
With the WordPress importer, the method to import an attachment is :
- Create a empty file
- Get datas from the URL
- Write the datas on the empty file.
- Check size by compare Header and file size.
The bug is here.
When the filesize() is call, the function return 0 because the value is on cache from the empty file.
Call the clearstatcache() function solve the problem.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [15106]) clearstatcache() after writing files. Props momo360modena. fixes #13683