PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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.