Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rather than changing error_reporting, just suppress

Hopefully this should fix tests on 5.4
  • Loading branch information...
commit f0ea4be5a0890d3d1b30c39d5d906ef74866cac8 1 parent 0e0f117
@rmccue rmccue authored
Showing with 2 additions and 4 deletions.
  1. +2 −1  library/SimplePie/Registry.php
  2. +0 −3  tests/CacheTest.php
View
3  library/SimplePie/Registry.php
@@ -212,7 +212,8 @@ public function &call($type, $method, $parameters = array())
// Cache::create() methods
if ($method === 'get_handler')
{
- $method = 'create';
+ $result = @call_user_func_array(array($class, 'create'), $parameters);
+ return $result;
}
break;
}
View
3  tests/CacheTest.php
@@ -97,10 +97,7 @@ public function testDirectOverrideLegacy()
$feed->get_registry()->register('File', 'Mock_File');
$feed->set_feed_url('http://example.com/feed/');
- // Ignore E_DEPRECATED and E_NOTICE
- $old = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
$feed->init();
- error_reporting($old);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.