Skip to content
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

Php 7.1 doesn't work with 1.11 and 1.12 versions (at least) #3996

Open
1 of 8 tasks
igronus opened this issue Apr 22, 2024 · 1 comment
Open
1 of 8 tasks

Php 7.1 doesn't work with 1.11 and 1.12 versions (at least) #3996

igronus opened this issue Apr 22, 2024 · 1 comment

Comments

@igronus
Copy link

igronus commented Apr 22, 2024

This is:

- [x] a bug report
- [ ] a feature request
- [x] **not** a usage question

What is the expected behavior?

The library versions 1.11 and 1.12 should work with PHP 7.1 according to composer.json requirements.

What is the current behavior?

The library works with PHP 7.1 if the version is 1.6 for example. But 1.11 and 1.12 versions do not.

What are the steps to reproduce?

This code causes infinite loading and memory consumption.

$objPHPExcel = IOFactory::load($templatePath);

What features do you think are causing the issue

  • Reader
  • Writer
  • Styles
  • Data Validations
  • Formula Calculations
  • Charts
  • AutoFilter
  • Form Elements

At least the reader is affected, but can't say for sure, probably something happening on the project level while adding newer php versions or while dropping older ones.

Does an issue affect all spreadsheet file formats? If not, which formats are affected?

No.

Which versions of PhpSpreadsheet and PHP are affected?

1.11 and 1.12 at least. Maybe some others higher than 1.6 and below 1.11.

@oleibman
Copy link
Collaborator

I will just get this out of the way up front - Php 7.1 became unsupported over 4 years ago, and you are running considerable risk if you continue to use it. Likewise PhpSpreadsheet 1.12 was replaced almost 4 years ago, and new versions have been tagged 23 times since then.

When Php 1.12 was released, it worked with Php 7.1, and should still do so. That doesn't mean it didn't have bugs. We receive bug reports and fix them all the time. We do not, however, retrofit the bug fixes to earlier releases. So, I guess a good first step for you would be to see how your spreadsheet works with current releases of PhpSpreadsheet and Php. If it works, you know what needs to be done. If it doesn't work, please file a bug with sufficient info (e.g. failing spreadsheet) to allow us to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants