diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2019-07-04 18:39:37 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-07-04 18:48:25 +0300 |
commit | 9cc4e3e4dec19c3a02d6c4a7afd87f4e60c35390 (patch) | |
tree | ba677d494bfa0da5413813d831e2035134a70d7e /testing/php7-pecl-solr | |
parent | 53b02f8b1597aabb4ec836bb5aa421e0d1f95189 (diff) | |
download | aports-9cc4e3e4dec19c3a02d6c4a7afd87f4e60c35390.tar.bz2 aports-9cc4e3e4dec19c3a02d6c4a7afd87f4e60c35390.tar.xz |
testing/php7-pecl-solr: upgrade to 2.5.0
Diffstat (limited to 'testing/php7-pecl-solr')
-rw-r--r-- | testing/php7-pecl-solr/APKBUILD | 11 | ||||
-rw-r--r-- | testing/php7-pecl-solr/fix-zend_acc_public.patch | 88 |
2 files changed, 4 insertions, 95 deletions
diff --git a/testing/php7-pecl-solr/APKBUILD b/testing/php7-pecl-solr/APKBUILD index a5aa6e4406..93c7c9172f 100644 --- a/testing/php7-pecl-solr/APKBUILD +++ b/testing/php7-pecl-solr/APKBUILD @@ -2,18 +2,16 @@ # Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> pkgname=php7-pecl-solr _pkgreal=solr -pkgver=2.4.0 +pkgver=2.5.0 _pkgver=${pkgver} -pkgrel=6 +pkgrel=0 pkgdesc="Apache SOLR extension for PHP" url="https://pecl.php.net/package/$_pkgreal" arch="all" license="PHP" depends="php7-json" makedepends="php7-dev curl-dev libxml2-dev autoconf pcre-dev" -source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz - fix-zend_acc_public.patch - " +source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" builddir="$srcdir"/$_pkgreal-$_pkgver provides="php7-solr=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-solr" # for backward compatibility @@ -37,5 +35,4 @@ package() { echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/40_$_pkgreal.ini } -sha512sums="05b6e252fadf55a7104bc6963e522684dad80540315e89729f4c589698ee68ff71f0e536b0e38ee4ae10b01cb04115ca12ced2897c3145d46fc54ab719de3590 solr-2.4.0.tgz -44f171c887e3b3a28d1294fe443d16aa0cef3ad25e92764ea6cb03bb5da26fb520bcec487f1f3cb188957a19221898d424967d4f6c67efc64def64c921a638d6 fix-zend_acc_public.patch" +sha512sums="5b24366942aa6eb0227da9d3d95bd0a9fd23a8163859e833c248cdab8f83391dc54df9fdae490ad9bc9bc5074b0b0c2c637918bc2f1738d5028f5e23c4d060cc solr-2.5.0.tgz" diff --git a/testing/php7-pecl-solr/fix-zend_acc_public.patch b/testing/php7-pecl-solr/fix-zend_acc_public.patch deleted file mode 100644 index 15c300383c..0000000000 --- a/testing/php7-pecl-solr/fix-zend_acc_public.patch +++ /dev/null @@ -1,88 +0,0 @@ -From: Remi Collet <remi@php.net> -Date: Fri, 23 Jun 2017 16:25:50 +0200 -Subject: Fix for 7.2: - ZEND_ACC_CLONE have been removed, - and was not used in previous versions - fix php_pcre_replace call - ---- ---- a/src/php7/php_solr.c -+++ b/src/php7/php_solr.c -@@ -557,7 +557,7 @@ static zend_function_entry solr_document_methods[] = { - SOLR_CTOR(SolrDocument, __construct, SolrDocument__construct_args) - SOLR_DTOR(SolrDocument, __destruct, Solr_no_args) - -- PHP_ME(SolrDocument, __clone, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CLONE) -+ PHP_ME(SolrDocument, __clone, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrDocument, __set, SolrDocument_addField_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrDocument, __get, SolrDocument_getField_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrDocument, __isset, SolrDocument_fieldExists_args, ZEND_ACC_PUBLIC) -@@ -600,7 +600,7 @@ static zend_function_entry solr_document_methods[] = { - static zend_function_entry solr_input_document_methods[] = { - SOLR_CTOR(SolrInputDocument, __construct, SolrInputDocument__construct_args) - SOLR_DTOR(SolrInputDocument, __destruct, Solr_no_args) -- PHP_ME(SolrInputDocument, __clone, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CLONE) -+ PHP_ME(SolrInputDocument, __clone, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrInputDocument, __sleep, Solr_no_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrInputDocument, __wakeup, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrInputDocument, setBoost, SolrInputDocument_setBoost_args, ZEND_ACC_PUBLIC) -@@ -633,7 +633,7 @@ static zend_function_entry solr_client_methods[] = { - SOLR_DTOR(SolrClient, __destruct, Solr_no_args) - PHP_ME(SolrClient, __sleep, Solr_no_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrClient, __wakeup, NULL, ZEND_ACC_PUBLIC) -- PHP_ME(SolrClient, __clone, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CLONE) -+ PHP_ME(SolrClient, __clone, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrClient, getOptions, Solr_no_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrClient, getDebug, Solr_no_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrClient, setServlet, SolrClient_setServlet_args, ZEND_ACC_PUBLIC) -@@ -710,7 +710,7 @@ static zend_function_entry solr_params_methods[] = { - PHP_ME(SolrParams, getParams, Solr_no_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrParams, getParam, SolrParams_getParam_args, ZEND_ACC_PUBLIC) - PHP_ME(SolrParams, getPreparedParams, Solr_no_args, ZEND_ACC_PUBLIC) -- PHP_ME(SolrParams, __clone, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CLONE) -+ PHP_ME(SolrParams, __clone, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrParams, serialize, NULL, ZEND_ACC_PUBLIC) - PHP_ME(SolrParams, unserialize, SolrParams_unserialize_args, ZEND_ACC_PUBLIC) - PHP_MALIAS(SolrParams, add, addParam, SolrParams_addParam_args, ZEND_ACC_PUBLIC) - ---- a/src/php7/solr_functions_helpers.c -+++ b/src/php7/solr_functions_helpers.c -@@ -1389,19 +1389,28 @@ PHP_SOLR_API long solr_get_json_last_error(TSRMLS_D) - static inline int solr_pcre_replace_into_buffer(solr_string_t *buffer, char * search, char *replace) - { - zend_string *result; -- zval replace_val; - int limit = -1; - int replace_count = -1; - zend_string *regex_str = zend_string_init(search, strlen(search), 0); - zend_string *subject_str = zend_string_init(buffer->str, buffer->len, 0); -+#if PHP_VERSION_ID >= 70200 -+ zend_string *replace_str = zend_string_init(replace, strlen(replace), 0); -+#else -+ zval replace_val; - ZVAL_STRING(&replace_val, replace); -+#endif -+ - result = php_pcre_replace( - regex_str, - subject_str, - buffer->str, - buffer->len, -+#if PHP_VERSION_ID >= 70200 -+ replace_str, -+#else - &replace_val, - 0, -+#endif - limit, - &replace_count - ); -@@ -1409,7 +1418,11 @@ static inline int solr_pcre_replace_into_buffer(solr_string_t *buffer, char * se - solr_string_set_ex(buffer, (solr_char_t *)result->val, (size_t)result->len); - /* fprintf(stdout, "%s", buffer->str); */ - efree(result); -+#if PHP_VERSION_ID >= 70200 -+ zend_string_release(replace_str); -+#else - zval_ptr_dtor(&replace_val); -+#endif - zend_string_release(regex_str); - zend_string_release(subject_str); |