Skip to content

PowerPoint97.php fatal error - getStream(): Argument #1 ($stream) must be of type int, null given #831

Open
@xm74

Description

@xm74

One more issue found with the MS PowerPoint presentation.
Here is a test file to download and an error dump.

PHP Fatal error:  Uncaught TypeError: PhpOffice\Common\Microsoft\OLERead::getStream(): Argument #1 ($stream) must be of type int, null given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php on line 478 and defined in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php:203
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(478): PhpOffice\Common\Microsoft\OLERead->getStream()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(451): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadOLE()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(439): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadFile()
#3 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\PowerPoint97->load()
#4 {main}
  thrown in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php on line 203

Fatal error: Uncaught TypeError: PhpOffice\Common\Microsoft\OLERead::getStream(): Argument #1 ($stream) must be of type int, null given, called in {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php on line 478 and defined in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php:203
Stack trace:
#0 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(478): PhpOffice\Common\Microsoft\OLERead->getStream()
#1 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(451): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadOLE()
#2 {hidden}/vendor/phpoffice/phppresentation/src/PhpPresentation/Reader/PowerPoint97.php(439): PhpOffice\PhpPresentation\Reader\PowerPoint97->loadFile()
#3 {hidden}/presidio.php(413): PhpOffice\PhpPresentation\Reader\PowerPoint97->load()
#4 {main}
  thrown in {hidden}/vendor/phpoffice/common/src/Common/Microsoft/OLERead.php on line 203

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions