Skip to content

Commit

Permalink
bump to 0.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillahsu committed Aug 26, 2016
1 parent 09cbe07 commit f53865c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 0.6 2016/08/26
- remove deprecated TSRMLS_DC.

Version 0.5 2016/08/26
- Add php7 support.

Expand Down
2 changes: 2 additions & 0 deletions php_qrencode.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ extern zend_module_entry qrencode_module_entry;
#include "TSRM.h"
#endif

#define PHP_QRENCODE_VERSION "0.6"

PHP_MINIT_FUNCTION(qrencode);
PHP_MSHUTDOWN_FUNCTION(qrencode);
PHP_MINFO_FUNCTION(qrencode);
Expand Down
14 changes: 8 additions & 6 deletions qrencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ typedef struct {
QRcode *c;
} php_qrcode;

static void qr_dtor(zend_resource *rsrc TSRMLS_DC);
static void qr_dtor(zend_resource *rsrc);

zend_function_entry qrencode_functions[] = {
PHP_FE(qr_encode, NULL)
Expand All @@ -56,7 +56,11 @@ zend_function_entry qrencode_functions[] = {
};

zend_module_entry qrencode_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
#if ZEND_MODULE_API_NO >= 20050922
STANDARD_MODULE_HEADER_EX,
NULL,
NULL,
#else
STANDARD_MODULE_HEADER,
#endif
"qrencode",
Expand All @@ -66,9 +70,7 @@ zend_module_entry qrencode_module_entry = {
NULL,
NULL,
PHP_MINFO(qrencode),
#if ZEND_MODULE_API_NO >= 20010901
"0.3",
#endif
PHP_QRENCODE_VERSION,
STANDARD_MODULE_PROPERTIES
};

Expand Down Expand Up @@ -370,7 +372,7 @@ PHP_FUNCTION(qr_save) {
}
/* }}} */

static void qr_dtor(zend_resource *rsrc TSRMLS_DC) {
static void qr_dtor(zend_resource *rsrc) {
php_qrcode *qr = (php_qrcode *)rsrc->ptr;

if (qr->c)
Expand Down

0 comments on commit f53865c

Please sign in to comment.