-
Notifications
You must be signed in to change notification settings - Fork 3.6k
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted #1777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @keehao. Could you provide the test.xlsx file? |
Also happen to me since 1.10.0 and newer in my case template file $arrayDatas my example php:
|
@polppol looking at your My problem was that numbers that had many decimals would cause a function inside PHPSpreadsheet to endlessly loop - I fixed this by adding a second condition to that loop. |
@brainz80 Thanks! I will try this |
try this workaround
|
Did you guys ever find a solution to this? |
currently I use v. 1.9.0 which is not have this problem |
For read only you can try with: |
This is:
What is the expected behavior?
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted
What is the current behavior?
the 'test.xlsx' is 70M, and has 2,000,000 rows data
What are the steps to reproduce?
Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:
Which versions of PhpSpreadsheet and PHP are affected?
php7.4 , latest phpspreadsheet version
The text was updated successfully, but these errors were encountered: