Changeset 3135988
- Timestamp:
- 08/15/2024 07:46:52 AM (20 months ago)
- Location:
- ultimate-410
- Files:
-
- 4 edited
- 1 copied
-
tags/1.1.8 (copied) (copied from ultimate-410/trunk)
-
tags/1.1.8/readme.txt (modified) (2 diffs)
-
tags/1.1.8/src/UploadOption.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/UploadOption.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ultimate-410/tags/1.1.8/readme.txt
r3092669 r3135988 4 4 Tags: 410, http-status 5 5 Requires at least: 5.1 6 Tested up to: 6. 56 Tested up to: 6.6 7 7 Requires PHP: 7.0 8 Stable tag: 1.1. 78 Stable tag: 1.1.8 9 9 License: MIT 10 10 License URI: https://opensource.org/licenses/MIT … … 60 60 == Changelog == 61 61 62 = 1.1.8 = 63 64 * * Remove deprecated ini_set() calls with `auto_detect_line_endings`. 65 62 66 = 1.1.7 = 63 67 -
ultimate-410/tags/1.1.8/src/UploadOption.php
r2845780 r3135988 55 55 ]; 56 56 57 ini_set('auto_detect_line_endings', true);58 57 $f = fopen($file['tmp_name'], 'r'); 59 58 $firstLine = trim(fgets($f)); 60 59 fclose($f); 61 ini_set('auto_detect_line_endings', false);62 60 foreach ($delimiters as $delimiter => &$count) { 63 61 $count = count(str_getcsv($firstLine, $delimiter)); … … 108 106 $data = []; 109 107 110 ini_set('auto_detect_line_endings', true);111 108 $f = fopen($file['tmp_name'], 'rb'); 112 109 $rowCount = 0; 110 $value = ''; 113 111 while (($row = fgetcsv($f, 0, $delimiter)) !== false) { 114 112 if ($rowCount === 0) { … … 124 122 } 125 123 fclose($f); 126 ini_set('auto_detect_line_endings', false);127 124 128 125 // remove all remaining fq URLs and empty values. -
ultimate-410/trunk/readme.txt
r3092669 r3135988 4 4 Tags: 410, http-status 5 5 Requires at least: 5.1 6 Tested up to: 6. 56 Tested up to: 6.6 7 7 Requires PHP: 7.0 8 Stable tag: 1.1. 78 Stable tag: 1.1.8 9 9 License: MIT 10 10 License URI: https://opensource.org/licenses/MIT … … 60 60 == Changelog == 61 61 62 = 1.1.8 = 63 64 * * Remove deprecated ini_set() calls with `auto_detect_line_endings`. 65 62 66 = 1.1.7 = 63 67 -
ultimate-410/trunk/src/UploadOption.php
r2845780 r3135988 55 55 ]; 56 56 57 ini_set('auto_detect_line_endings', true);58 57 $f = fopen($file['tmp_name'], 'r'); 59 58 $firstLine = trim(fgets($f)); 60 59 fclose($f); 61 ini_set('auto_detect_line_endings', false);62 60 foreach ($delimiters as $delimiter => &$count) { 63 61 $count = count(str_getcsv($firstLine, $delimiter)); … … 108 106 $data = []; 109 107 110 ini_set('auto_detect_line_endings', true);111 108 $f = fopen($file['tmp_name'], 'rb'); 112 109 $rowCount = 0; 110 $value = ''; 113 111 while (($row = fgetcsv($f, 0, $delimiter)) !== false) { 114 112 if ($rowCount === 0) { … … 124 122 } 125 123 fclose($f); 126 ini_set('auto_detect_line_endings', false);127 124 128 125 // remove all remaining fq URLs and empty values.
Note: See TracChangeset
for help on using the changeset viewer.