diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-02-19 15:19:54 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-02-19 15:19:54 +0000 |
commit | e9d7bc2afe91b3aa6633cfc987ffe29b0206fa89 (patch) | |
tree | 6220273e7a0ea3aa017945cc8c792c64db0e11e0 /src/driver/svg.php | |
parent | 33f9c78325f57256073429817d6bc46e8f9fc1e5 (diff) | |
download | zetacomponents-graph-e9d7bc2afe91b3aa6633cfc987ffe29b0206fa89.zip zetacomponents-graph-e9d7bc2afe91b3aa6633cfc987ffe29b0206fa89.tar.gz |
- Fixed issue #10199: Use saveXML instead of save( 'php://output' ) to work
around PHP bug #40429
Diffstat (limited to 'src/driver/svg.php')
-rw-r--r-- | src/driver/svg.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php index 410c794..a32f541 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -1084,6 +1084,24 @@ class ezcGraphSvgDriver extends ezcGraphDriver } /** + * Render image directly to output + * + * The method renders the image directly to the standard output. You + * normally do not want to use this function, because it makes it harder + * to proper cache the generated graphs. + * + * @return void + */ + public function renderToOutput() + { + $this->createDocument(); + $this->drawAllTexts(); + + header( 'Content-Type: ' . $this->getMimeType() ); + echo $this->dom->saveXML(); + } + + /** * Finally save image * * @param string $file Destination filename |