Author: Kore Nordmann Date: 2007-02-19 16:19:54 +0100 (Mon, 19 Feb 2007) New Revision: 4667
Log: - Fixed issue #10199: Use saveXML instead of save( 'php://output' ) to work around PHP bug #40429 Modified: trunk/Graph/ChangeLog trunk/Graph/src/driver/svg.php Modified: trunk/Graph/ChangeLog =================================================================== --- trunk/Graph/ChangeLog 2007-02-19 10:33:29 UTC (rev 4666) +++ trunk/Graph/ChangeLog 2007-02-19 15:19:54 UTC (rev 4667) @@ -14,6 +14,8 @@ - Fixed issue #9950: Improved ezcGraphPolynom::__toString method for more exact output - Fixed issue #10055: Improve chart class documentation with chart elements +- Fixed issue #10199: Use saveXML instead of save( 'php://output' ) to work + around PHP bug #40429 1.0 - Monday 18 December 2006 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Modified: trunk/Graph/src/driver/svg.php =================================================================== --- trunk/Graph/src/driver/svg.php 2007-02-19 10:33:29 UTC (rev 4666) +++ trunk/Graph/src/driver/svg.php 2007-02-19 15:19:54 UTC (rev 4667) @@ -1084,6 +1084,24 @@ } /** + * 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 -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components