Browse files

Rather than changing error_reporting, just suppress

Hopefully this should fix tests on 5.4
  • Loading branch information...
1 parent d029efb commit e4920d1f84e23a810654d134e5c04f13f4f6e4b8 @rmccue rmccue committed Oct 12, 2012
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);
}
/**

0 comments on commit e4920d1

Please sign in to comment.