Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
fixed version macros in almost all recently active extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Oct 15, 2013
1 parent 3996cc5 commit 6bf9000
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions blenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ zend_module_entry blenc_module_entry = {
NULL,
PHP_MINFO(blenc),
#if ZEND_MODULE_API_NO >= 20010901
BLENC_VERSION, /* Replace with version number for your extension */
PHP_BLENC_VERSION, /* Replace with version number for your extension */
#endif
STANDARD_MODULE_PROPERTIES
};
Expand Down Expand Up @@ -116,7 +116,7 @@ PHP_MINIT_FUNCTION(blenc)
zend_compile_file_old = zend_compile_file;
zend_compile_file = blenc_compile;

REGISTER_STRING_CONSTANT("BLENC_EXT_VERSION", BLENC_VERSION, CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("BLENC_EXT_VERSION", PHP_BLENC_VERSION, CONST_CS | CONST_PERSISTENT);

/*
* check expire extension
Expand Down Expand Up @@ -216,7 +216,7 @@ PHP_MINFO_FUNCTION(blenc)
else
php_info_print_table_row(2, "Blenc support", "Enabled");

php_info_print_table_row(2, "Blenc version", BLENC_VERSION);
php_info_print_table_row(2, "Blenc version", PHP_BLENC_VERSION);
php_info_print_table_row(2, "Blenc expire date", BL_G(expire_date));

php_info_print_table_end();
Expand All @@ -238,7 +238,7 @@ PHP_FUNCTION(blenc_encrypt) {
int bfdata_len = 0;
char *b64data = NULL;
int b64data_len = 0;
blenc_header header = {BLENC_IDENT, BLENC_VERSION};
blenc_header header = {BLENC_IDENT, PHP_BLENC_VERSION};

memset(main_hash, '\0', sizeof(main_hash));

Expand Down
2 changes: 1 addition & 1 deletion php_blenc.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define ZEND_ENGINE_2_1
#endif

#define BLENC_VERSION "1.1.2b"
#define PHP_BLENC_VERSION "1.1.2b"
#define BLENC_IDENT "BLENC"
#define BLENC_BUFSIZE 4092

Expand Down

0 comments on commit 6bf9000

Please sign in to comment.