summaryrefslogtreecommitdiffstats
path: root/src/driver/svg.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-02-19 15:19:54 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-02-19 15:19:54 +0000
commite9d7bc2afe91b3aa6633cfc987ffe29b0206fa89 (patch)
tree6220273e7a0ea3aa017945cc8c792c64db0e11e0 /src/driver/svg.php
parent33f9c78325f57256073429817d6bc46e8f9fc1e5 (diff)
downloadzetacomponents-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.php18
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
OpenPOWER on IntegriCloud