Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0

Bug #20171 Patch to get rid of errors in HTTP log (when creating clusters) and doc fix
Submitted: 2014-01-08 15:19 UTC
From: pikmaster Assigned: doconnor
Status: Closed Package: Image_GraphViz (version SVN)
PHP Version: Irrelevant OS: CentOS release 6.3, 2.6.32 x64
Roadmaps: (Not assigned)    
Subscription  


 [2014-01-08 15:19 UTC] pikmaster (Pik Master)
Description: ------------ This patches the library to get rid of the errors in HTTP log [Wed Jan 08 08:40:05 2014] [error] [client 10.70.32.21] PHP Notice: Undefined index: LONIN in /usr/share/pear/Image/GraphViz.php on line 936, referer: http://something/something.php [Wed Jan 08 08:40:05 2014] [error] [client 10.70.32.21] PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/Image/GraphViz.php on line 909, referer: http://something/something.php and minor documentation fix in function addCluster() and addSubgraph() - "title" parameter needs to be a string not array Test script: --------------- <?php require_once 'Image/GraphViz.php'; $GraphTitle = ""; $GraphDirected = true; $attr = null; $gv = new Image_GraphViz ($GraphDirected, $attr, $GraphTitle); $SiteCode = "DUB"; $clusterid = $SiteCode; $parentid = 'default'; $gv->addCluster ($clusterid, $clusterid, $attr, $parentid); //add clusters with site names $clusterid = "switchname"; $parentid = $SiteCode; $gv->addCluster ($clusterid, $clusterid, $attr, $parentid); //add cluster with switch name $raw_data = $gv->fetch('png'); //save as image ?> Expected result: ---------------- <empty = no errors> Actual result: -------------- PHP Notice: Undefined index: DUB in /usr/share/pear/Image/GraphViz.php on line 936 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/Image/GraphViz.php on line 909 PHP Notice: Undefined index: switchname in /usr/share/pear/Image/GraphViz.php on line 936 PHP Warning: Invalid argument supplied for foreach() in /usr/share/pear/Image/GraphViz.php on line 909

Comments

 [2014-01-08 19:51 UTC] pikmaster (Pik Master)
 [2014-04-20 09:06 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.