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

Commit

Permalink
- Bring the majority of PECL extensions into line with macro/x.x.x ve…
Browse files Browse the repository at this point in the history
…rsioning.

- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
  • Loading branch information
Steph Fox committed Mar 31, 2008
1 parent 4fe2b9b commit ed2c3d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions blenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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,
#endif
STANDARD_MODULE_PROPERTIES
};
Expand Down Expand Up @@ -103,7 +103,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);

return SUCCESS;
}
Expand Down Expand Up @@ -146,6 +146,7 @@ PHP_MINFO_FUNCTION(blenc)
{
php_info_print_table_start();
php_info_print_table_header(2, "blenc support", "enabled");
php_info_print_table_row(2, "version", PHP_BLENC_VERSION);
php_info_print_table_end();

DISPLAY_INI_ENTRIES();
Expand All @@ -160,7 +161,7 @@ PHP_FUNCTION(blenc_encrypt) {
php_stream *stream;
zend_bool dup_key = FALSE;

blenc_header header = {BLENC_IDENT, BLENC_VERSION};
blenc_header header = {BLENC_IDENT, PHP_BLENC_VERSION};

if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|s", &data, &data_len,
&output_file, &output_file_len,
Expand Down
2 changes: 1 addition & 1 deletion php_blenc.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef PHP_BLENC_H
#define PHP_BLENC_H

#define BLENC_VERSION "1.0-alpha"
#define PHP_BLENC_VERSION "1.0.0-dev"
#define BLENC_IDENT "BLENC"
#define BLENC_BUFSIZE 4092

Expand Down

0 comments on commit ed2c3d0

Please sign in to comment.