-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from Setasign/development
Development
- Loading branch information
Showing
12 changed files
with
362 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
|
||
namespace setasign\Fpdi\unit\PdfParser; | ||
|
||
/** | ||
* This stream wrapper is created to simulate a stream wrapper that is not seekable (while its metadata report that | ||
* it is seekable). | ||
*/ | ||
class DummyFaultyStreamWrapper | ||
{ | ||
public $context; | ||
|
||
function stream_open($path, $mode, $options, &$opened_path) | ||
{ | ||
return true; | ||
} | ||
|
||
function stream_read($count) | ||
{ | ||
return ''; | ||
} | ||
|
||
function stream_write($data) | ||
{ | ||
return 0; | ||
} | ||
|
||
function stream_tell() | ||
{ | ||
return 0; | ||
} | ||
|
||
function stream_eof() | ||
{ | ||
return false; | ||
} | ||
|
||
function stream_seek($offset, $whence) | ||
{ | ||
return false; | ||
} | ||
|
||
function stream_metadata($path, $option, $var) | ||
{ | ||
return true; | ||
} | ||
|
||
function stream_stat() | ||
{ | ||
return []; | ||
} | ||
} |
Oops, something went wrong.