Skip to content

Commit

Permalink
Merge remote-tracking branch 'weierophinney/feature/error-suppression…
Browse files Browse the repository at this point in the history
…-removal'
  • Loading branch information
akrabat committed Jul 13, 2012
2 parents 342f1d2 + 3f88435 commit dd3288d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion library/ZendPdf/BinaryParser/DataSource/File.php
Expand Up @@ -12,6 +12,7 @@

use Zend\Pdf;
use Zend\Pdf\Exception;
use Zend\Stdlib\ErrorHandler;

/**
* Concrete subclass of {@link \Zend\Pdf\BinaryParser\DataSource\AbstractDataSource}
Expand Down Expand Up @@ -84,7 +85,9 @@ public function __construct($filePath)
public function __destruct()
{
if (is_resource($this->_fileResource)) {
@fclose($this->_fileResource);
ErrorHandler::start(E_WARNING);
fclose($this->_fileResource);
ErrorHandler::stop();
}
}

Expand Down
5 changes: 3 additions & 2 deletions library/ZendPdf/composer.json
Expand Up @@ -13,6 +13,7 @@
},
"target-dir": "Zend/Pdf",
"require": {
"php": ">=5.3.3"
"php": ">=5.3.3",
"zendframework/zend-stdlib": "self.version"
}
}
}

0 comments on commit dd3288d

Please sign in to comment.