If E_NOTICEs are enabled prior to entering this code
then they are suppressed. however if E_NOTICEs are
disabled prior to reading an excel file then notices
are enabled while reading the excel file.
the line:
error_reporting($errlevel ^ E_NOTICE);
should be:
error_reporting($errlevel & !E_NOTICE);