Problem/Motivation
Drupal\Core\StreamWrapper\LocalStream::stream_metadata() calls clearstatcache(). This is somewhat helpful for people using stream wrappers, but it is inconsistent with how PHP's regular file handling works. This can lead to bugs where someone depends on the stream wrapper behavior, but then deals with a regular file.
Proposed resolution
Remove the clearstatcache() call.
Remaining tasks
Get consensus.
User interface changes
None.
API changes
Minor. Local stream wrappers now behave more like the regular file system.
Comment | File | Size | Author |
---|---|---|---|
#24 | 2501719-24.patch | 1.72 KB | smustgrave |
| |||
#24 | interdiff-10-24.txt | 3.14 KB | smustgrave |
Issue fork drupal-2501719
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
twistor CreditAttribution: twistor commentedLet's see what breaks.
Comment #3
mandar.harkare CreditAttribution: mandar.harkare as a volunteer and commentedAdding same patch again.
Comment #4
mandar.harkare CreditAttribution: mandar.harkare as a volunteer and commentedComment #6
mgiffordComment #7
Nitesh Pawar CreditAttribution: Nitesh Pawar at Trigyn Technologies Ltd commentedltl optimized
Comment #8
Nitesh Pawar CreditAttribution: Nitesh Pawar at Trigyn Technologies Ltd commentedComment #10
Nitesh Pawar CreditAttribution: Nitesh Pawar at Trigyn Technologies Ltd commentedComment #22
smustgrave CreditAttribution: smustgrave at Mobomo commentedlets see if patch passes 10.1
Comment #23
smustgrave CreditAttribution: smustgrave at Mobomo commentedPatch failed to apply to 10.1 so needs some work.
Comment #24
smustgrave CreditAttribution: smustgrave at Mobomo commentedRerolled for 10.1
Comment #25
gaurav-mathur CreditAttribution: gaurav-mathur at Dotsquares Ltd. commentedPatch #24 applied successfully on drupal version 10.1.x
Thank you
Comment #28
catchThe issue title and summary says remove the call, but this is moving it around - can we not remove it entirely?