Skip to content

Commit

Permalink
Organizing the Pecl version into just one variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ecaron committed Sep 26, 2012
1 parent 128bb30 commit 8759c85
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 74 deletions.
2 changes: 1 addition & 1 deletion TECH_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ zend_hash_init() is setting up the HashTable pointer to use.
==================================================================
Release Checklist
==================================================================
0. Make sure version information is updated in php_solr_version.h and package.xml
0. Make sure version information is updated in solr_constants.h and package.xml

1. Checkout release candidate source code from SVN, then compile and install.
svn co http://svn.php.net/repository/pecl/solr/trunk pecl-solr
Expand Down
1 change: 0 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
<file role="src" name="solr.dsp"/>
<file role="src" name="php_solr.h"/>
<file role="src" name="php_solr_api.h"/>
<file role="src" name="php_solr_version.h"/>
<file role="src" name="php_solr_bc_macros.h"/>
<file role="src" name="solr_constants.h"/>
<file role="src" name="solr_macros.h"/>
Expand Down
67 changes: 0 additions & 67 deletions php_solr_version.h

This file was deleted.

4 changes: 3 additions & 1 deletion solr_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#ifndef SOLR_CONSTANTS_H
#define SOLR_CONSTANTS_H

#include "php_solr_version.h"
/* {{{ Current version of Solr extension */
#define PHP_SOLR_DOTTED_VERSION "1.0.1"
#define SOLR_CLIENT_USER_AGENT "PHP Solr Client " PHP_SOLR_DOTTED_VERSION

#define SOLR_SPACE_STRING " "

Expand Down
4 changes: 0 additions & 4 deletions solr_functions_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
/* {{{ void solr_extension_register_constants(int type, int module_number TSRMLS_DC) */
PHP_SOLR_API void solr_extension_register_constants(int type, int module_number TSRMLS_DC)
{
REGISTER_LONG_CONSTANT("SOLR_MAJOR_VERSION", PHP_SOLR_MAJOR_VERSION, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOLR_MINOR_VERSION", PHP_SOLR_MINOR_VERSION, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SOLR_PATCH_VERSION", PHP_SOLR_PATCH_VERSION, CONST_CS | CONST_PERSISTENT);

REGISTER_STRING_CONSTANT("SOLR_EXTENSION_VERSION", PHP_SOLR_DOTTED_VERSION, CONST_CS | CONST_PERSISTENT);
}
/* }}} */
Expand Down

0 comments on commit 8759c85

Please sign in to comment.