Make WordPress Core

Opened 14 years ago

Closed 14 years ago

#13683 closed defect (bug) (fixed)

Add clearstatcache for fix a bug on specific configuration

Reported by: momo360modena's profile momo360modena Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Import Keywords: has-patch needs-testing
Focuses: Cc:


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)

stats.diff (674 bytes) - added by momo360modena 14 years ago.

Download all attachments as: .zip

Change History (2)

14 years ago

#1 @ryan
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [15106]) clearstatcache() after writing files. Props momo360modena. fixes #13683

Note: See TracTickets for help on using tickets.