summaryrefslogtreecommitdiff
path: root/ext/rpc/tests/test2.php
blob: 666033da2ab869d791217437b1a2c46af6c664c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

echo "hash test\n";

/* hash test */
$rpc1 = new com("hash", true, 1);
$rpc2 = new com("hash", false, 2);
$rpc3 = new com("hash", true, 3);
$rpc4 = com_load("hash", false, 4);
$rpc5 = com_load("hash", true, 5);

$rpc1->{3} = "hh";
com_set($rpc2, "hehe", 3);

$rpc1->call("blah");
$rpc2->call("blah");
$rpc3->call("blah");
$rpc4->call("heh");
$rpc5->call("blah");
?>