Permalink
Browse files

Drop PEAR::loadExtension

  • Loading branch information...
1 parent 448b0f5 commit c3e4c18abe12a90ea25687b4ec1acb33726e7cc0 @CloCkWeRX CloCkWeRX committed Jan 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 HTTP/Download2.php
  2. +1 −1 tests/HTTP_Download2Test.php
View
@@ -384,7 +384,7 @@ function setResource($handle = null)
*/
function setGzip($gzip = false)
{
- if ($gzip && !PEAR::loadExtension('zlib')){
+ if ($gzip && !extension_loaded('zlib')) {
throw new HTTP_Download2_Exception(
'GZIP compression (ext/zlib) not available.',
HTTP_DOWNLOAD2_E_NO_EXT_ZLIB
@@ -61,7 +61,7 @@ function testsetGzip()
$h = new HTTP_Download2;
$h->setGzip(false);
$this->assertFalse($h->gzip, '$h->gzip');
- if (PEAR::loadExtension('zlib')) {
+ if (extension_loaded('zlib')) {
$h->setGzip(true);
$this->assertTrue($h->gzip, '$h->gzip');

0 comments on commit c3e4c18

Please sign in to comment.