diff options
| author | SVN Migration <svn@php.net> | 2002-03-13 18:39:43 +0000 |
|---|---|---|
| committer | SVN Migration <svn@php.net> | 2002-03-13 18:39:43 +0000 |
| commit | 8d6817e7f142091b1c30de30f349c3fde9d7e094 (patch) | |
| tree | 45704599905d4a7445ad446fc5337374a3390dbf /ext/mcve/tests/mcve_test2.php | |
| parent | 94e6810a2a3e189cf729bdbae8f45cd9d7987ad6 (diff) | |
| download | php-git-help.tar.gz | |
This commit was manufactured by cvs2svn to create tag 'help'.help
Diffstat (limited to 'ext/mcve/tests/mcve_test2.php')
| -rw-r--r-- | ext/mcve/tests/mcve_test2.php | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/ext/mcve/tests/mcve_test2.php b/ext/mcve/tests/mcve_test2.php deleted file mode 100644 index 4cb251b538..0000000000 --- a/ext/mcve/tests/mcve_test2.php +++ /dev/null @@ -1,68 +0,0 @@ -<? - # - # $Id$ - # - -$connect_type = "IP"; - -dl("php_mcve.so"); - -$conn = MCVE_InitConn(); -print "MCVE_InitConn() returned $conn<br>\n"; - -if ($connect_type == "IP") { - MCVE_SetIP($conn, "localhost", 8333) or - die("MCVE_SetIP() failed"); - print "MCVE_SetIP() successful<br>\n"; -} else { - MCVE_SetDropFile($conn, "/var/mcve/trans") or - die("MCVE_SetDropFile() failed"); - print "MCVE_SetDropFile() successful<br>\n"; -} - -MCVE_Connect($conn) or - die("MCVE_Connect() failed"); -print "MCVE_Connect() successful<br>\n"; - -# send a request -$ident = MCVE_Sale($conn, "test", "test", NULL, "5454545454545454", - "1205", 11.00, NULL, NULL, NULL, NULL, "me", NULL, 54321); -if ($ident == -1) - die("MCVE_Sale() failed"); -else - print "Identifier: $ident<br>\n"; - -$ident = MCVE_Sale($conn, "test", "test", NULL, "5454545454545454", - "1205", 12.00, NULL, NULL, NULL, NULL, "me", NULL, 54321); -if ($ident == -1) - die("MCVE_Sale() failed"); -else - print "Identifier: $ident<br>\n"; - -$pending = 0; -$complete = -1; -while ($pending != $complete) { - sleep(2); - - MCVE_Monitor($conn); - - $pending = MCVE_TransInQueue($conn); - print "Transactions pending: $pending<br>\n"; - - $complete = MCVE_CompleteAuthorizations($conn, &$list); - print "Authorizations complete: $complete<br>\n"; - - flush(); -} - -for ($i = 0; $i < $complete; $i++) { - $status = MCVE_CheckStatus($conn, $i); - print "Transaction #" . $list[$i] . " complete: $status<br>\n"; -} - -MCVE_DestroyConn($conn); -print "MCVE_DestroyConn() completed<br>\n"; - -#phpinfo(); - -?> |
