From 791108ff7267d0525eda37f099a1c0ba97623a5c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 10 Jun 2021 08:16:58 +0200 Subject: [PATCH] Opencensus now supports PHP 8.0 --- data/supported-extensions | 2 +- install-php-extensions | 19 ++----------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/data/supported-extensions b/data/supported-extensions index 45ed7be..4f6fa29 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -50,7 +50,7 @@ oauth 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 oci8 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 opcache 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 -opencensus 7.0 7.1 7.2 7.3 7.4 +opencensus 7.0 7.1 7.2 7.3 7.4 8.0 parallel 7.1 7.2 7.3 7.4 pcntl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 pcov 7.0 7.1 7.2 7.3 7.4 8.0 diff --git a/install-php-extensions b/install-php-extensions index 6016a68..3c64d46 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1811,23 +1811,8 @@ installRemoteModule() { fi ;; opencensus) - if test $PHP_MAJMIN_VERSION -le 702; then - if test -z "$installRemoteModule_version"; then - installRemoteModule_version=alpha - fi - else - installRemoteModule_manuallyInstalled=1 - if test -z "$installRemoteModule_version"; then - installRemoteModule_src="$(getPackageSource https://pecl.php.net/get/opencensus)" - else - installRemoteModule_src="$(getPackageSource https://pecl.php.net/get/opencensus-$installRemoteModule_version)" - fi - cd "$installRemoteModule_src"/opencensus-* - find . -name '*.c' -type f -exec sed -i 's/\bZVAL_DESTRUCTOR\b/zval_dtor/g' {} + - phpize - ./configure - make install - cd - >/dev/null + if test -z "$installRemoteModule_version"; then + installRemoteModule_version=alpha fi ;; parallel)