X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-rrd_2.0.3-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-rrd_2.0.3-1.el8
/
tests
/
ðŸ“
..
ðŸ“
data
📄
rrd_001.phpt
(157 B)
📄
rrd_002.phpt
(727 B)
📄
rrd_003.phpt
(400 B)
📄
rrd_004.phpt
(2.1 KB)
📄
rrd_005.phpt
(1.05 KB)
📄
rrd_006.phpt
(1.12 KB)
📄
rrd_007.phpt
(324 B)
📄
rrd_008.phpt
(1012 B)
📄
rrd_009.phpt
(274 B)
📄
rrd_010.phpt
(1.6 KB)
📄
rrd_011.phpt
(460 B)
📄
rrd_012.phpt
(1.4 KB)
📄
rrd_013.phpt
(294 B)
📄
rrd_014.phpt
(845 B)
📄
rrd_015.phpt
(640 B)
📄
rrd_016.phpt
(560 B)
📄
rrd_017.phpt
(1.94 KB)
📄
rrd_018.phpt
(966 B)
📄
rrd_019.phpt
(1.11 KB)
📄
rrd_020.phpt
(255 B)
📄
rrd_021.phpt
(1.15 KB)
📄
rrd_022.phpt
(236 B)
📄
rrdtool-bin.inc
(117 B)
📄
rrdtool-bin.inc.in
(114 B)
📄
skipif.inc
(84 B)
Editing: rrd_019.phpt
--TEST-- RRDGraph saveVerbose full export test --SKIPIF-- <?php include('skipif.inc'); include('data/definition.inc'); if (!file_exists($data_updatedDb)) { die("skip $data_updatedDb doesn't exist"); } ?> --FILE-- <?php include('data/definition.inc'); $rrdFile = $data_updatedDb; $outputPngFile = "-"; $graphObj = new RRDGraph($outputPngFile); $graphObj->setOptions(array( "--start" => "920804400", "--end" => 920808000, "--vertical-label" => "m/s", "DEF:myspeed=$rrdFile:speed:AVERAGE", "CDEF:realspeed=myspeed,1000,*", "LINE2:realspeed#FF0000" )); $output = $graphObj->saveVerbose(); $imgData = $output["image"]; unset($output["image"]); //output without img data var_dump($output); //detection of correct PNG header var_dump(substr($imgData, 0, 8) == "\x89PNG\x0d\x0a\x1a\x0a"); ?> --EXPECTF-- array(10) { ["graph_left"]=> int(67) ["graph_top"]=> int(%d) ["graph_width"]=> int(400) ["graph_height"]=> int(100) ["image_width"]=> int(497) ["image_height"]=> int(%d) ["graph_start"]=> int(920804400) ["graph_end"]=> int(920808000) ["value_min"]=> float(0) ["value_max"]=> float(40) } bool(true)
Upload File
Create Folder