You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] a bug report
- [ ] a feature request
- [x] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
parse correctly
What is the current behavior?
crashes with error 'Undefined index'
What are the steps to reproduce?
If you put object to xls cell without (i suppose) a picture
in $objDrawing->setPath there's a $images[(string) self::getArrayItem(...)]. And in my case self::getArrayItem(...) gives null, then (string) null gives empty string, and $images[""] crashes the code.
Please make a patch which prevents this, eg by isset() functionality.
Thanks!
Which versions of PhpSpreadsheet and PHP are affected?
tested on 1.0 and latest
The text was updated successfully, but these errors were encountered:
This is:
What is the expected behavior?
parse correctly
What is the current behavior?
crashes with error 'Undefined index'
What are the steps to reproduce?
If you put object to xls cell without (i suppose) a picture
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:
please explore
src/PhpSpreadsheet/Reader/Xlsx.php
the string #1611 (on 1.0 ver, latest should be different)
the code around there is:
in $objDrawing->setPath there's a
$images[(string) self::getArrayItem(...)]
. And in my caseself::getArrayItem(...)
gives null, then(string) null
gives empty string, and$images[""]
crashes the code.Please make a patch which prevents this, eg by isset() functionality.
Thanks!
Which versions of PhpSpreadsheet and PHP are affected?
tested on 1.0 and latest
The text was updated successfully, but these errors were encountered: