Comments (4)
In PHP 8.1, the auto_detect_line_endings INI directive has been deprecated, not deleted.
from phpspreadsheet.
phpoffice/phpspreadsheet 1.29.0 ver
PhpOffice\PhpSpreadsheet\Reader\Csv;
private function setAutoDetect(?string $value): ?string
{
$retVal = null;
if ($value !== null && $this->testAutodetect) {
$retVal2 = @ini_set('auto_detect_line_endings', $value); << error!
if (is_string($retVal2)) {
$retVal = $retVal2;
}
}
return $retVal;
}
from phpspreadsheet.
There should be no error in this code, and that line should not generate any error.
What is the exact error message that you are getting?
from phpspreadsheet.
I have seen cases where user-supplied error handlers have inappropriately detected and converted the suppressed deprecation message to an error despite the use of the at-sign to suppress messages. That is the reason for the check on testAutodetect
in the code cited above. Users unwilling to correct their error handler can add $reader->setTestAutodetect(false)
to their code before loading the spreadsheet; they will prematurely lose the ability to detect Mac line endings (which is very unlikely to be an issue), and the error message will go away because ini_set will not be called.
from phpspreadsheet.
Related Issues (20)
- Default style alignment does not work for Xlsx Writer HOT 9
- Sheet cloning is time consuming HOT 1
- Prepending zero on negative percentage numbers -10<n<-9
- setCellValueByColumnAndRow deprecated?? HOT 1
- Rank formula not working HOT 1
- [Bug] Removing column when next column value is null shifts cell value from deleted column into the next column HOT 6
- Calculation Error "=COUNTIF(F$12:F$203,"1")" HOT 1
- Xls::loadSpreadsheetFromFile: trim(): Passing null to parameter #1 ($string) of type string is deprecated HOT 11
- converting a .xlsx file to .pdf not retain the specified print area HOT 1
- setReadDataOnly function is deprecated or missing HOT 4
- Including WordPress? HOT 4
- If the content of the csv file contains Chinese characters enclosed in double quotes, the data will not be output correctly HOT 4
- Need help regarding download of excel file. HOT 1
- Protect Sheet But Allow Sort not working HOT 2
- [ERROR] Class "Rector\Core\Rector\AbstractRector" not found HOT 2
- Make voku packages optional HOT 2
- Unable to save with setFormatCode in ODS, and getFormatCode from existing documents HOT 4
- mime_content_type() has been removed since PHP ver. 8 HOT 1
- Some methods removed in v2.0 but not mentioned in CHANGELOG file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpspreadsheet.