import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -18,10 +18,6 @@
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
/** Zend_Pdf_Exception */
|
||||
require_once 'Zend/Pdf/Exception.php';
|
||||
|
||||
|
||||
/**
|
||||
* Abstract helper class for {@link Zend_Pdf_FileParser} that provides the
|
||||
* data source for parsing.
|
||||
@ -176,10 +172,12 @@ abstract class Zend_Pdf_FileParserDataSource
|
||||
return; // Not moving; do nothing.
|
||||
}
|
||||
if ($offset < 0) {
|
||||
require_once 'Zend/Pdf/Exception.php';
|
||||
throw new Zend_Pdf_Exception('Attempt to move before start of data source',
|
||||
Zend_Pdf_Exception::MOVE_BEFORE_START_OF_FILE);
|
||||
}
|
||||
if ($offset >= $this->_size) { // Offsets are zero-based.
|
||||
require_once 'Zend/Pdf/Exception.php';
|
||||
throw new Zend_Pdf_Exception('Attempt to move beyond end of data source',
|
||||
Zend_Pdf_Exception::MOVE_BEYOND_END_OF_FILE);
|
||||
}
|
||||
@ -201,5 +199,4 @@ abstract class Zend_Pdf_FileParserDataSource
|
||||
{
|
||||
$this->moveToOffset($this->_offset + $byteCount);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user