#109 [NEW]: image() calls header() for non-binary imagemap-data

From: Date: Thu, 16 Oct 2003 12:49:57 +0000
Subject: #109 [NEW]: image() calls header() for non-binary imagemap-data
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22727@lists.php.net to get a copy of this message
From: winkelmann at someon dot com Operating system: Linux PHP version: 4.3.3 PHP Bug Type: Image_GraphViz Bug description: image() calls header() for non-binary imagemap-data Description: ------------ The image-method tries to set the contentlenght-header independent of file format. This results in a warning when Graphviz is used to generate a Imagemap inside a html page. Solution: Add a format check around the header(); in line 121 Reproduce code: --------------- $map = new Graphviz; $map->AddNode(...); echo '<map name="dependencies">'; $map->Image('cmap'); echo '</map>'; -- Edit bug report at http://pear.php.net/bugs/bug.php?id=109&edit=1 --

« previous php.pear.dev (#22727) next »