Commit 44357b1
committed
iconv: keep working converter when stream filter seek reset fails
php_iconv_stream_filter_seek() closed the filter's converter before
knowing whether a replacement could be opened, then stored the failed
iconv_open() result. That left self->cd as (iconv_t)-1 for every later
read and write, and for the iconv_close() in the filter dtor. Open the
replacement first and only swap it in on success.1 parent 1d004f0 commit 44357b1
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2595 | 2595 | | |
2596 | 2596 | | |
2597 | 2597 | | |
| 2598 | + | |
2598 | 2599 | | |
2599 | 2600 | | |
2600 | 2601 | | |
2601 | 2602 | | |
2602 | | - | |
2603 | | - | |
2604 | | - | |
2605 | | - | |
2606 | | - | |
| 2603 | + | |
| 2604 | + | |
2607 | 2605 | | |
2608 | 2606 | | |
2609 | 2607 | | |
2610 | 2608 | | |
2611 | 2609 | | |
| 2610 | + | |
| 2611 | + | |
2612 | 2612 | | |
2613 | 2613 | | |
2614 | 2614 | | |
| |||
0 commit comments