mirror of
https://github.com/pcsc-for-php/pcsc.git
synced 2026-08-08 21:09:26 +02:00
cleanups, release fixes and ugly code replace
git-svn-id: https://svn.php.net/repository/pecl/pcsc/trunk@335787 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2ff770f19f
commit
55640fee83
3 changed files with 8 additions and 8 deletions
|
|
@ -21,14 +21,14 @@ Windows are supported.
|
||||||
<time>23:02:23</time>
|
<time>23:02:23</time>
|
||||||
<version>
|
<version>
|
||||||
<release>0.3.1</release>
|
<release>0.3.1</release>
|
||||||
<api>0.3</api>
|
<api>0.3.1</api>
|
||||||
</version>
|
</version>
|
||||||
<stability>
|
<stability>
|
||||||
<release>alpha</release>
|
<release>alpha</release>
|
||||||
<api>alpha</api>
|
<api>alpha</api>
|
||||||
</stability>
|
</stability>
|
||||||
<license uri="http://www.php.net/license">PHP</license>
|
<license uri="http://www.php.net/license">PHP</license>
|
||||||
<notes>Fix w32 build, fix compiler warnings, use zval resource instead of LONG for handles</notes>
|
<notes>Fixed bug to make the use of the T=0 protocol possible.</notes>
|
||||||
<contents>
|
<contents>
|
||||||
<dir name="/">
|
<dir name="/">
|
||||||
<file name="COPYING" role="doc" />
|
<file name="COPYING" role="doc" />
|
||||||
|
|
|
||||||
2
pcsc.c
2
pcsc.c
|
|
@ -590,7 +590,7 @@ PHP_FUNCTION(scard_list_readers)
|
||||||
Return a handle to the card */
|
Return a handle to the card */
|
||||||
PHP_FUNCTION(scard_connect)
|
PHP_FUNCTION(scard_connect)
|
||||||
{
|
{
|
||||||
DWORD dwPreferredProtocol = SCARD_PROTOCOL_T1|SCARD_PROTOCOL_T0;
|
DWORD dwPreferredProtocol = SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1;
|
||||||
DWORD dwCurrentProtocol;
|
DWORD dwCurrentProtocol;
|
||||||
SCARDHANDLE hCard = 0;
|
SCARDHANDLE hCard = 0;
|
||||||
LONG rc = 0;
|
LONG rc = 0;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
extern zend_module_entry pcsc_module_entry;
|
extern zend_module_entry pcsc_module_entry;
|
||||||
#define phpext_pcsc_ptr &pcsc_module_entry
|
#define phpext_pcsc_ptr &pcsc_module_entry
|
||||||
|
|
||||||
#define PHP_PCSC_VERSION "0.3"
|
#define PHP_PCSC_VERSION "0.3.1"
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
#define PHP_PCSC_API __declspec(dllexport)
|
#define PHP_PCSC_API __declspec(dllexport)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue