|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-10-10 11:28 UTC] juraj dot bocinec at lain dot sk
Description: ------------ php function rrd_graph is missing description of the "count" parameter, that seems to be mandatory: Warning: Wrong parameter count for rrd_graph() in /u01/storage/html/graph.php on line 25 --- From manual page: http://www.php.net/function.rrd-graph --- Test script: --------------- irrelevant, documentation error Expected result: ---------------- irrelevant, documentation error Actual result: -------------- irrelevant, documentation error PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 06:00:01 2026 UTC |
greetings, to me it seems as mandatory because if i omit it, i will get the error message, here is the sample function from code, i've commented out the "working" code function cgraphvg($source, $output, $start, $title) { $RRD="/u01/storage/rrd/$source.rrd"; $options = array( "--start", $start, "--title=$title", "--lower-limit=0", "-w 600", "-h 300", "-X 0", "DEF:a=$RRD:usedvg:AVERAGE", "DEF:b=$RRD:freevg:AVERAGE", "AREA:a#0000ff:used GB in VG", "STACK:b#00ff00:free GB in VG" ); #$ret=rrd_graph("/u01/storage/html/$output", $options, count($options)); $ret=rrd_graph("/u01/storage/html/$output", $options); if(! $ret) { echo "Graph error:".rrd_error(); } } it's hard to debug as the rrd_error() function doesn't return any relevant error (the output is empty) Warning: Wrong parameter count for rrd_graph() in /u01/storage/html/graph.php on line 26 Graph error: