|
13 | 13 | * @author Craig Manley
|
14 | 14 | * @copyright Copyright © 2010, Craig Manley (www.craigmanley.com)
|
15 | 15 | * @license http://www.opensource.org/licenses/mit-license.php Licensed under MIT
|
16 |
| -* @version $Id: CSVReader.php,v 1.23 2024/02/18 00:17:41 cmanley Exp $ |
| 16 | +* @version $Id: CSVReader.php,v 1.24 2024/02/26 14:35:50 cmanley Exp $ |
17 | 17 | * @package cmanley
|
18 | 18 | */
|
19 | 19 |
|
@@ -167,7 +167,7 @@ function __construct($file, array $options = null) {
|
167 | 167 | }
|
168 | 168 | $this->debug && error_log(__METHOD__ . ' Internal encoding: ' . $this->internal_encoding);
|
169 | 169 | $this->debug && error_log(__METHOD__ . ' File: ' . (is_string($file) ? $file : gettype($file)));
|
170 |
| - $this->debug && error_log(__METHOD__ . ' Stream is seekable: ' . var_export($this->seekable,1)); |
| 170 | + $this->debug && error_log(__METHOD__ . ' Stream is seekable: ' . var_export($this->seekable, true)); |
171 | 171 |
|
172 | 172 | # Read the BOM, if any.
|
173 | 173 | if (1) {
|
@@ -362,12 +362,12 @@ function __construct($file, array $options = null) {
|
362 | 362 | $this->must_transcode = false;
|
363 | 363 | }
|
364 | 364 | }
|
365 |
| - $this->debug && error_log(__METHOD__ . ' Must transcode: ' . var_export($this->must_transcode, 1)); |
| 365 | + $this->debug && error_log(__METHOD__ . ' Must transcode: ' . var_export($this->must_transcode, true)); |
366 | 366 |
|
367 | 367 | # Read header row.
|
368 | 368 | #@trigger_error('');
|
369 | 369 | if ($row = $this->_fgetcsv()) {
|
370 |
| - $this->debug && error_log(__METHOD__ . ' Raw header row: ' . print_r($row,1)); |
| 370 | + $this->debug && error_log(__METHOD__ . ' Raw header row: ' . print_r($row, true)); |
371 | 371 | $unknown_fieldinfo = []; # field name => col index pairs
|
372 | 372 |
|
373 | 373 | # Get the fieldname => column indices
|
@@ -402,7 +402,7 @@ function __construct($file, array $options = null) {
|
402 | 402 | }
|
403 | 403 | $this->field_cols[$name] = $x;
|
404 | 404 | }
|
405 |
| - $this->debug && error_log(__METHOD__ . ' Field name => column index pairs: ' . print_r($this->field_cols,1)); |
| 405 | + $this->debug && error_log(__METHOD__ . ' Field name => column index pairs: ' . print_r($this->field_cols, true)); |
406 | 406 | }
|
407 | 407 |
|
408 | 408 | # Check that all the required header fields are present.
|
|
0 commit comments