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.