mirror of https://github.com/jacekkow/uphpCAS

Jacek Kowalski
2015-09-06 a660177f51333207165dbdd0795889827adea10b
Remove finally block to support PHP 5.4 and older
1 files modified
8 ■■■■■ changed files
uphpCAS.php 8 ●●●●● patch | view | raw | blame | history
uphpCAS.php
@@ -228,13 +228,15 @@
                }
            }
        } catch(Exception $e) {
            throw new JasigException('Authentication error: CAS server'
                    .' response invalid - parse error', 0, $e);
        } finally {
            libxml_clear_errors();
            libxml_disable_entity_loader($xmlEntityLoader);
            libxml_use_internal_errors($xmlInternalErrors);
            throw new JasigException('Authentication error: CAS server'
                    .' response invalid - parse error', 0, $e);
        }
        libxml_clear_errors();
        libxml_disable_entity_loader($xmlEntityLoader);
        libxml_use_internal_errors($xmlInternalErrors);
        
        $failure = $xml->getElementsByTagName('authenticationFailure');
        $success = $xml->getElementsByTagName('authenticationSuccess');