PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » File_PDF » Bug #1768

Save does not work

Details

Submitted2004-07-01 23:51 UTC
Fromabdul at solary dot net
Assignedyunosh
StatusClosed
PackageFile_PDF
PHP Version4.3.7
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-01 23:51 UTC] abdul at solary dot net

Description:
------------
Save does not call close() as output() does.

Reproduce code:
---------------
save() lacks this from output(), put it before the _buffer is written. Sorry I don't know how to make diffs.

/* Check whether file has been closed. */
if ($this->_state < 3) {
$this->close();
}

Expected result:
----------------
The entire file is written.

Actual result:
--------------
Only the header is written.