Skip to content

Memory exhausted while load blank excel which the first column setDataValidation with a column range #797

@yhdban

Description

@yhdban

I has a blank excel file which the first column setDataValidation with a column range.
then when use phpoffice/phpspreadsheet 1.5.2 to load the file, code as follows.

$phpReader = IOFactory::createReader('Xlsx');
$excel = $phpReader->load('D:\\develop\\test.xlsx');

What is the current behavior?

Apache record error log as follows 
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 64 bytes) in phpoffice\phpspreadsheet\src\PhpSpreadsheet\Cell\Coordinate.php on line 336

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions