Skip to content

Commit

Permalink
Merge pull request #70 from php/packaging270
Browse files Browse the repository at this point in the history
packaging: 2.7.0
  • Loading branch information
omars44 authored Jan 11, 2024
2 parents 5c30d55 + a78ba52 commit 59a888d
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pecl package package.xml
pecl install ./solr-2.6.0.tgz
pecl install ./solr-2.7.0.tgz
echo "extension=solr.so" > /usr/local/etc/php/conf.d/solr.ini
php -m | grep solr
bash
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.11-cli-alpine3.17
FROM php:8.3-cli

RUN apt update && apt install libxml2-dev libcurl4-gnutls-dev --yes

Expand All @@ -8,6 +8,8 @@ COPY .docker/entrypoint.sh /opt/

RUN mkdir /opt/solr2

COPY ./ /opt/solr2

WORKDIR /opt/solr2

ENTRYPOINT ["sh","/opt/entrypoint.sh"]
ENTRYPOINT ["sh","/opt/entrypoint.sh"]
16 changes: 0 additions & 16 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,16 +0,0 @@
Features:
- Support Highlight Query (#28)

API Changes:
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
- Added string SolrQuery::getHighlightQuery()

Bug Fixes:
- Fix parsed parameter types (#37)
- Fix compile error: libcurl on linux multi-arch support (#46)
- Fix SegFault in SolrClient::optimize() (debug mode)
- Fix Missing Windows DLLs (#51) / available on github releases now

Internals:
- ci: windows tests (#51)
- parse_int macros
4 changes: 2 additions & 2 deletions docs/documentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/

define('SOLR_MAJOR_VERSION', 2);
define('SOLR_MINOR_VERSION', 6);
define('SOLR_MINOR_VERSION', 7);
define('SOLR_PATCH_VERSION', 0);

define('SOLR_EXTENSION_VERSION', '2.6.0');
define('SOLR_EXTENSION_VERSION', '2.7.0');

/**
* Returns the current version of the Apache Solr extension
Expand Down
82 changes: 72 additions & 10 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ https://github.com/php/pecl-search_engine-solr
<email>biggi@stefna.is</email>
<active>yes</active>
</lead>
<date>2022-11-09</date>
<date>2024-01-11</date>
<version>
<release>2.6.0</release>
<api>2.6.0</api>
<release>2.7.0</release>
<api>2.7.0</api>
</version>
<stability>
<release>stable</release>
Expand All @@ -52,8 +52,26 @@ https://github.com/php/pecl-search_engine-solr
<!-- Notes for the latest release -->
<notes>
<![CDATA[
- PHP 8.1 compatible
- PHP 8.2 compatible
Features:
- Support Highlight Query (#28)
- Support PHP 8.3
- Dropped Support for PHP 7.3 and below
API Changes:
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
- Added string SolrQuery::getHighlightQuery()
Bug Fixes:
- Fix parsed parameter types (#37)
- Fix compile error: libcurl on linux multi-arch support (#46)
- Fix SegFault in SolrClient::optimize() (debug mode)
- Fix Missing Windows DLLs (#51) / available on github releases now
- Fix curl checks for PHP 7.4+, use PKG_CONFIG (remicollet)
Internals:
- ci: windows tests (#51)
- parse_int macros
]]>
</notes>

Expand Down Expand Up @@ -124,6 +142,8 @@ https://github.com/php/pecl-search_engine-solr
<file role="test" name="skip.if.server_not_configured.inc" />
<file role="test" name="test.config.inc" />
<file role="test" name="bootstrap.inc" />
<file role="test" name="000.solr_int_arg.phpt" />
<file role="test" name="000.solr_int_arg_strict.phpt" />
<file role="test" name="000.solrclient_ping.phpt" />
<file role="test" name="000.solr_server_compat.phpt" />
<file role="test"
Expand Down Expand Up @@ -330,6 +350,7 @@ https://github.com/php/pecl-search_engine-solr
<file role="test"
name="201.solrextractrequest_serialize.phpt" />
<file role="test" name="202.solrdocument_new_serialize.phpt" />
<file role="test" name="203.solrquery_strict_types.phpt" />
<file role="test" name="bug_59511_error.phpt" />
<file role="test" name="bug_61836_error.phpt" />
<file role="test" name="bug_67394.phpt" />
Expand All @@ -356,6 +377,14 @@ https://github.com/php/pecl-search_engine-solr
<file role="test" name="sample_1.xlsx" />
<file role="test" name="solr-word.pdf" />
</dir> <!-- tests/files -->
<dir name="docker">
<file role="test" name="Dockerfile" />
<dir name="collections">
<file role="test" name="collection1.json" />
<file role="test" name="metal_store.json" />
</dir> <!-- tests/docker/collections -->
</dir> <!-- tests/docker -->

</dir> <!-- tests -->
<dir name="pecl-compat">
<file role="src" name="compat.h" />
Expand Down Expand Up @@ -409,8 +438,8 @@ https://github.com/php/pecl-search_engine-solr
<dependencies>
<required>
<php>
<min>7.0</min>
<max>8.2.99</max>
<min>7.4.0</min>
<max>8.3.99</max>
</php>
<pearinstaller>
<min>1.4.0</min>
Expand All @@ -425,13 +454,46 @@ https://github.com/php/pecl-search_engine-solr

<!-- Configure options for source releases -->
<extsrcrelease>
<configureoption default="no"
name="enable-solr-debug"
prompt="Enable Solr Debugging (Compiles solr in debug mode)" />
</extsrcrelease>

<!-- Changes to the extension should be tracked here -->
<changelog>
<release>
<version>
<release>2.7.0</release>
<api>2.7.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<date>2024-01-11</date>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
<![CDATA[
Features:
- Support Highlight Query (#28)
- Support PHP 8.3
- Dropped Support for PHP 7.3 and below
API Changes:
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
- Added string SolrQuery::getHighlightQuery()
Bug Fixes:
- Fix parsed parameter types (#37)
- Fix compile error: libcurl on linux multi-arch support (#46)
- Fix SegFault in SolrClient::optimize() (debug mode)
- Fix Missing Windows DLLs (#51) / available on github releases now
- Fix curl checks for PHP 7.4+, use PKG_CONFIG (remicollet)
Internals:
- ci: windows tests (#51)
- parse_int macros
]]>
</notes>
</release>
<release>
<version>
<release>2.6.0</release>
Expand Down
4 changes: 2 additions & 2 deletions src/php7/php_solr_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
#define PHP_SOLR_VERSION_H

#define PHP_SOLR_MAJOR_VERSION 2
#define PHP_SOLR_MINOR_VERSION 6
#define PHP_SOLR_MINOR_VERSION 7
#define PHP_SOLR_PATCH_VERSION 0

#define PHP_SOLR_RELEASE_VERSION PHP_SOLR_PATCH_VERSION

#define PHP_SOLR_VERSION "2.6.0"
#define PHP_SOLR_VERSION "2.7.0"
#define PHP_SOLR_DOTTED_VERSION PHP_SOLR_VERSION


Expand Down

0 comments on commit 59a888d

Please sign in to comment.