mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 11:31:16 +00:00
Fix build of PHP-FPM 8.0 uploadprogress module
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#### Fixed
|
#### Fixed
|
||||||
- [#153](https://github.com/devilbox/docker-php-fpm/pull/153) Use numeric order for startup files
|
- [#153](https://github.com/devilbox/docker-php-fpm/pull/153) Use numeric order for startup files
|
||||||
- Fix build of PHP-FPM 7.4 snmp module
|
- Fix build of PHP-FPM 7.4 snmp module
|
||||||
|
- Fix build of PHP-FPM 8.0 uploadprogress module
|
||||||
|
|
||||||
|
|
||||||
## Release 0.105
|
## Release 0.105
|
||||||
|
|||||||
@@ -455,7 +455,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install uploadprogress \
|
&& pecl install uploadprogress \
|
||||||
|
|||||||
@@ -555,7 +555,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install uploadprogress \
|
&& pecl install uploadprogress \
|
||||||
|
|||||||
@@ -574,7 +574,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install uploadprogress \
|
&& pecl install uploadprogress \
|
||||||
|
|||||||
@@ -562,7 +562,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install uploadprogress \
|
&& pecl install uploadprogress \
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Generic
|
# Installation: Version specific
|
||||||
# Type: PECL extension
|
# Type: PECL extension
|
||||||
# Default: Pecl command
|
# Default: Pecl command
|
||||||
&& pecl install uploadprogress \
|
&& pecl install uploadprogress \
|
||||||
|
|||||||
@@ -633,7 +633,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
|
|||||||
@@ -642,7 +642,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
|
|||||||
@@ -646,7 +646,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
|
|||||||
@@ -646,7 +646,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
|
|||||||
@@ -595,7 +595,7 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
|
|||||||
@@ -453,22 +453,15 @@ RUN set -eux \
|
|||||||
|
|
||||||
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
# -------------------- Installing PHP Extension: uploadprogress --------------------
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
# Installation: Version specific
|
# Installation: Generic
|
||||||
# Type: GIT extension
|
# Type: GIT extension
|
||||||
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
&& git clone https://github.com/php/pecl-php-uploadprogress /tmp/uploadprogress \
|
||||||
&& cd /tmp/uploadprogress \
|
&& cd /tmp/uploadprogress \
|
||||||
# Custom: Install command
|
# Default: Install command
|
||||||
&& true \
|
&& phpize \
|
||||||
# FIXME: This is a work-around to mitigate compile error with PHP 8.0
|
&& ./configure --enable-uploadprogress \
|
||||||
&& rgrep -I 'TSRMLS_CC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_CC)/)/g' || true \
|
&& make -j$(getconf _NPROCESSORS_ONLN) \
|
||||||
&& rgrep -I 'TSRMLS_CC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_CC,/,/g' || true \
|
&& make install \
|
||||||
&& rgrep -I 'TSRMLS_DC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_DC)/)/g' || true \
|
|
||||||
&& rgrep -I 'TSRMLS_DC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_DC,/,/g' || true \
|
|
||||||
&& phpize \
|
|
||||||
&& ./configure --enable-uploadprogress \
|
|
||||||
&& make \
|
|
||||||
&& make install \
|
|
||||||
\
|
|
||||||
# Enabling
|
# Enabling
|
||||||
&& docker-php-ext-enable uploadprogress \
|
&& docker-php-ext-enable uploadprogress \
|
||||||
&& true
|
&& true
|
||||||
|
|||||||
@@ -977,42 +977,20 @@ extensions_available:
|
|||||||
tokenizer:
|
tokenizer:
|
||||||
already_avail: "{{ php_all_versions }}"
|
already_avail: "{{ php_all_versions }}"
|
||||||
uploadprogress:
|
uploadprogress:
|
||||||
7.0:
|
5.2:
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
configure: --enable-uploadprogress
|
|
||||||
7.1:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
configure: --enable-uploadprogress
|
|
||||||
7.2:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
configure: --enable-uploadprogress
|
|
||||||
7.3:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
configure: --enable-uploadprogress
|
|
||||||
7.4:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
configure: --enable-uploadprogress
|
|
||||||
8.0:
|
|
||||||
type: git
|
|
||||||
git_url: https://github.com/php/pecl-php-uploadprogress
|
|
||||||
command: |
|
|
||||||
true \
|
|
||||||
# FIXME: This is a work-around to mitigate compile error with PHP 8.0
|
|
||||||
&& rgrep -I 'TSRMLS_CC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_CC)/)/g' || true \
|
|
||||||
&& rgrep -I 'TSRMLS_CC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_CC,/,/g' || true \
|
|
||||||
&& rgrep -I 'TSRMLS_DC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_DC)/)/g' || true \
|
|
||||||
&& rgrep -I 'TSRMLS_DC' | cut -d':' -f1 | sort -u | xargs -n1 sed -i'' 's/TSRMLS_DC,/,/g' || true \
|
|
||||||
&& phpize \
|
|
||||||
&& ./configure --enable-uploadprogress \
|
|
||||||
&& make \
|
|
||||||
&& make install \
|
|
||||||
all:
|
|
||||||
type: pecl
|
type: pecl
|
||||||
|
5.3:
|
||||||
|
type: pecl
|
||||||
|
5.4:
|
||||||
|
type: pecl
|
||||||
|
5.5:
|
||||||
|
type: pecl
|
||||||
|
5.6:
|
||||||
|
type: pecl
|
||||||
|
all:
|
||||||
|
type: git
|
||||||
|
git_url: https://github.com/php/pecl-php-uploadprogress
|
||||||
|
configure: --enable-uploadprogress
|
||||||
wddx:
|
wddx:
|
||||||
# https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx
|
# https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx
|
||||||
disabled: [7.4, 8.0]
|
disabled: [7.4, 8.0]
|
||||||
|
|||||||
Reference in New Issue
Block a user