Skip to content

Commit 59a888d

Browse files
authored
Merge pull request #70 from php/packaging270
packaging: 2.7.0
2 parents 5c30d55 + a78ba52 commit 59a888d

File tree

6 files changed

+82
-33
lines changed

6 files changed

+82
-33
lines changed

.docker/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
pecl package package.xml
2-
pecl install ./solr-2.6.0.tgz
2+
pecl install ./solr-2.7.0.tgz
33
echo "extension=solr.so" > /usr/local/etc/php/conf.d/solr.ini
44
php -m | grep solr
5+
bash

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2.11-cli-alpine3.17
1+
FROM php:8.3-cli
22

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

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

99
RUN mkdir /opt/solr2
1010

11+
COPY ./ /opt/solr2
12+
1113
WORKDIR /opt/solr2
1214

13-
ENTRYPOINT ["sh","/opt/entrypoint.sh"]
15+
ENTRYPOINT ["sh","/opt/entrypoint.sh"]

NEWS

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
Features:
2-
- Support Highlight Query (#28)
3-
4-
API Changes:
5-
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
6-
- Added string SolrQuery::getHighlightQuery()
7-
8-
Bug Fixes:
9-
- Fix parsed parameter types (#37)
10-
- Fix compile error: libcurl on linux multi-arch support (#46)
11-
- Fix SegFault in SolrClient::optimize() (debug mode)
12-
- Fix Missing Windows DLLs (#51) / available on github releases now
13-
14-
Internals:
15-
- ci: windows tests (#51)
16-
- parse_int macros

docs/documentation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
*/
1919

2020
define('SOLR_MAJOR_VERSION', 2);
21-
define('SOLR_MINOR_VERSION', 6);
21+
define('SOLR_MINOR_VERSION', 7);
2222
define('SOLR_PATCH_VERSION', 0);
2323

24-
define('SOLR_EXTENSION_VERSION', '2.6.0');
24+
define('SOLR_EXTENSION_VERSION', '2.7.0');
2525

2626
/**
2727
* Returns the current version of the Apache Solr extension

package.xml

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ https://github.com/php/pecl-search_engine-solr
3838
<email>[email protected]</email>
3939
<active>yes</active>
4040
</lead>
41-
<date>2022-11-09</date>
41+
<date>2024-01-11</date>
4242
<version>
43-
<release>2.6.0</release>
44-
<api>2.6.0</api>
43+
<release>2.7.0</release>
44+
<api>2.7.0</api>
4545
</version>
4646
<stability>
4747
<release>stable</release>
@@ -52,8 +52,26 @@ https://github.com/php/pecl-search_engine-solr
5252
<!-- Notes for the latest release -->
5353
<notes>
5454
<![CDATA[
55-
- PHP 8.1 compatible
56-
- PHP 8.2 compatible
55+
Features:
56+
- Support Highlight Query (#28)
57+
- Support PHP 8.3
58+
- Dropped Support for PHP 7.3 and below
59+
60+
API Changes:
61+
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
62+
- Added string SolrQuery::getHighlightQuery()
63+
64+
Bug Fixes:
65+
- Fix parsed parameter types (#37)
66+
- Fix compile error: libcurl on linux multi-arch support (#46)
67+
- Fix SegFault in SolrClient::optimize() (debug mode)
68+
- Fix Missing Windows DLLs (#51) / available on github releases now
69+
- Fix curl checks for PHP 7.4+, use PKG_CONFIG (remicollet)
70+
71+
Internals:
72+
- ci: windows tests (#51)
73+
- parse_int macros
74+
5775
]]>
5876
</notes>
5977

@@ -124,6 +142,8 @@ https://github.com/php/pecl-search_engine-solr
124142
<file role="test" name="skip.if.server_not_configured.inc" />
125143
<file role="test" name="test.config.inc" />
126144
<file role="test" name="bootstrap.inc" />
145+
<file role="test" name="000.solr_int_arg.phpt" />
146+
<file role="test" name="000.solr_int_arg_strict.phpt" />
127147
<file role="test" name="000.solrclient_ping.phpt" />
128148
<file role="test" name="000.solr_server_compat.phpt" />
129149
<file role="test"
@@ -330,6 +350,7 @@ https://github.com/php/pecl-search_engine-solr
330350
<file role="test"
331351
name="201.solrextractrequest_serialize.phpt" />
332352
<file role="test" name="202.solrdocument_new_serialize.phpt" />
353+
<file role="test" name="203.solrquery_strict_types.phpt" />
333354
<file role="test" name="bug_59511_error.phpt" />
334355
<file role="test" name="bug_61836_error.phpt" />
335356
<file role="test" name="bug_67394.phpt" />
@@ -356,6 +377,14 @@ https://github.com/php/pecl-search_engine-solr
356377
<file role="test" name="sample_1.xlsx" />
357378
<file role="test" name="solr-word.pdf" />
358379
</dir> <!-- tests/files -->
380+
<dir name="docker">
381+
<file role="test" name="Dockerfile" />
382+
<dir name="collections">
383+
<file role="test" name="collection1.json" />
384+
<file role="test" name="metal_store.json" />
385+
</dir> <!-- tests/docker/collections -->
386+
</dir> <!-- tests/docker -->
387+
359388
</dir> <!-- tests -->
360389
<dir name="pecl-compat">
361390
<file role="src" name="compat.h" />
@@ -409,8 +438,8 @@ https://github.com/php/pecl-search_engine-solr
409438
<dependencies>
410439
<required>
411440
<php>
412-
<min>7.0</min>
413-
<max>8.2.99</max>
441+
<min>7.4.0</min>
442+
<max>8.3.99</max>
414443
</php>
415444
<pearinstaller>
416445
<min>1.4.0</min>
@@ -425,13 +454,46 @@ https://github.com/php/pecl-search_engine-solr
425454

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

433459
<!-- Changes to the extension should be tracked here -->
434460
<changelog>
461+
<release>
462+
<version>
463+
<release>2.7.0</release>
464+
<api>2.7.0</api>
465+
</version>
466+
<stability>
467+
<release>stable</release>
468+
<api>stable</api>
469+
</stability>
470+
<date>2024-01-11</date>
471+
<license uri="http://www.php.net/license">PHP License</license>
472+
<notes>
473+
<![CDATA[
474+
Features:
475+
- Support Highlight Query (#28)
476+
- Support PHP 8.3
477+
- Dropped Support for PHP 7.3 and below
478+
479+
API Changes:
480+
- Added SolrQuery SolrQuery::setHighlightQuery(string $q)
481+
- Added string SolrQuery::getHighlightQuery()
482+
483+
Bug Fixes:
484+
- Fix parsed parameter types (#37)
485+
- Fix compile error: libcurl on linux multi-arch support (#46)
486+
- Fix SegFault in SolrClient::optimize() (debug mode)
487+
- Fix Missing Windows DLLs (#51) / available on github releases now
488+
- Fix curl checks for PHP 7.4+, use PKG_CONFIG (remicollet)
489+
490+
Internals:
491+
- ci: windows tests (#51)
492+
- parse_int macros
493+
494+
]]>
495+
</notes>
496+
</release>
435497
<release>
436498
<version>
437499
<release>2.6.0</release>

src/php7/php_solr_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
#define PHP_SOLR_VERSION_H
2323

2424
#define PHP_SOLR_MAJOR_VERSION 2
25-
#define PHP_SOLR_MINOR_VERSION 6
25+
#define PHP_SOLR_MINOR_VERSION 7
2626
#define PHP_SOLR_PATCH_VERSION 0
2727

2828
#define PHP_SOLR_RELEASE_VERSION PHP_SOLR_PATCH_VERSION
2929

30-
#define PHP_SOLR_VERSION "2.6.0"
30+
#define PHP_SOLR_VERSION "2.7.0"
3131
#define PHP_SOLR_DOTTED_VERSION PHP_SOLR_VERSION
3232

3333

0 commit comments

Comments
 (0)