Commit a624579
committed
phar: Fix SplFileInfo::openFile() in write mode
This stopped working after e735d2b because fp_refcount is increased,
making phar think that the file has open read pointers.
To fix this, the refcount shouldn't be increased but that would
re-introduce the previous bug.
However, 6fe40de fixed a bug that makes us hold onto the phar
archive too. That fix also fixes the original issue, so we can just
remove the fp_refcount modification.1 parent 37e61a0 commit a624579
2 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4492 | 4492 | | |
4493 | 4493 | | |
4494 | 4494 | | |
4495 | | - | |
4496 | 4495 | | |
4497 | 4496 | | |
4498 | 4497 | | |
| |||
4540 | 4539 | | |
4541 | 4540 | | |
4542 | 4541 | | |
4543 | | - | |
4544 | 4542 | | |
4545 | 4543 | | |
4546 | 4544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments