mirror of
https://github.com/php/php-src.git
synced 2026-04-21 06:51:18 +02:00
First, we must not free the current line before we call `spl_filesystem_file_read_csv()`, because then the `current_line` will not be properly updated. Since the EOF check is superfluous here, we move that part of the code to the branch for subtypes. This issue has been introduced by the fix for bug 75917. Second, we only must increase the `current_line` if we're not reading ahead. This issue has been introduced by the fix for bug 62004. Closes GH-8138.
340 B
340 B
| 1 | id | status | on_sale | brand | name | link | meta_title | meta_desc | description |
|---|---|---|---|---|---|---|---|---|---|
| 2 | 1 | 2 | 15 | Samsung | M21 | samsung-m21 | Samsung M21 | Samsung M21 | Samsung M21 |
| 3 | 2 | 2 | 15 | Samsung | M32 | samsung-m32 | Samsung M32 | Samsung M32 | Samsung M32 |
| 4 | 3 | 2 | 15 | Samsung | M21 | samsung-m21 | Samsung M21 | Samsung M21 | Samsung M21 |
| 5 | 4 | 2 | 15 | Samsung | M32 | samsung-m32 | Samsung M32 | Samsung M32 | Samsung M32 |