mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-08 21:09:26 +02:00
Added scard_begin_transaction and scard_end_transaction; SEGFAULTS when using it
This commit is contained in:
parent
9023e2a831
commit
62b8e1e6d8
7 changed files with 151 additions and 53 deletions
|
|
@ -48,6 +48,17 @@ $errstr = scard_errstr($errno);
|
|||
var_dump($errstr);
|
||||
echo "\n";
|
||||
|
||||
# Begin Transaction
|
||||
echo ">> Begin Transaction\n";
|
||||
$begin= scard_begin_transaction($connection);
|
||||
var_dump($begin);
|
||||
|
||||
$errno = scard_last_errno();
|
||||
var_dump($errno);
|
||||
$errstr = scard_errstr($errno);
|
||||
var_dump($errstr);
|
||||
echo "\n";
|
||||
|
||||
# Select Applet APDU
|
||||
echo ">> Select Applet\n";
|
||||
$CMD = "00a4040c0cD2760001354B414E4D30310000";
|
||||
|
|
@ -73,6 +84,17 @@ $errstr = scard_errstr($errno);
|
|||
var_dump($errstr);
|
||||
echo "\n";
|
||||
|
||||
# End Transaction
|
||||
echo ">> End Transaction\n";
|
||||
$begin= scard_end_transaction($connection);
|
||||
var_dump($connection);
|
||||
|
||||
$errno = scard_last_errno();
|
||||
var_dump($errno);
|
||||
$errstr = scard_errstr($errno);
|
||||
var_dump($errstr);
|
||||
echo "\n";
|
||||
|
||||
# Show Status
|
||||
echo ">> Show Status\n";
|
||||
$status = scard_status($connection);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue