Skip to content

Invalid ics generates uncaught exception #12

@mmuman

Description

@mmuman

Passing "foobar" as ICS content to the constructor generates an uncaught exception:

Uncaught Error: Call to a member function getName() on null in icalendar/includes/ical.php:582
Stack trace:
#0 import_vacances.php(26): ZCiCal->__construct('foobar\\n')
#1 {main}\n  thrown in icalendar/includes/ical.php on line 582

Regular try…catch didn't work and I had to use set_exception_handler() to catch it… it should really pass it, or test for proper format first.

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