php-src/ext/rpc/tests/test1.php

39 lines
713 B
PHP
Raw Normal View History

<?php
2002-03-15 23:28:10 +00:00
print "huhuhdsa";
$rpc = new com("class", true, "huh");
$rpc2 = new com("class", true, "hehe", 1);
$rpc->call("blah");
$rpc->call("heh");
$rpc->call("blah");
com_call($rpc, 1, "1");
com_call($rpc, 1, "1");
$rpc->call("blah");
$rpc->call("blah");
$rpc->call("blah");
$rpc2->call("hehe");
$rpc2->call("hehe");
$rpc2->call("hehe");
$rpc2->call("hehe");
$rpc2->call("hehe");
com_call($rpc, "call", 1);
com_call($rpc, 1, "1");
com_call($rpc, "call", 1);
com_call($rpc2, "call", 1);
com_call($rpc2, "call", 1);
//$rpc->addref();
2002-03-16 16:15:34 +00:00
//$clone = $rpc->__clone();
2002-03-16 16:15:34 +00:00
//$rpc->prop = 1;
//$a = $rpc->prop;
//$a = &$rpc->prop;
2002-03-16 16:15:34 +00:00
//delete $rpc;
//delete $clone;
2002-03-15 23:28:10 +00:00
$heh = com_load("heh", 1);
$heh->knorp();
/*delete $heh;*/
?>