Skip to content

Commit e7edc0d

Browse files
authored
Merge pull request #83 from reactphp-parallel/2.x-PHP-8.4
[2.x] Update to PHP 8.4
2 parents e7e7372 + 534fa8f commit e7edc0d

File tree

4 files changed

+1087
-1549
lines changed

4 files changed

+1087
-1549
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ SHELL=bash
44
.PHONY: *
55

66
CONTAINER_REGISTRY_REPO="ghcr.io/wyrihaximusnet/php"
7-
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell composer show -t | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
8-
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell composer show -s | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
7+
COMPOSER_SHOW_EXTENSION_LIST_PROD=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -t) | grep -o "\-\-\(ext-\).\+" | sort | uniq | cut -d- -f4- | tr -d '\n' | grep . | sed '/^$$/d' | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],' | sed 's/.$$//')
8+
COMPOSER_SHOW_EXTENSION_LIST_DEV=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer show -s) | grep -o "\(ext-\).\+" | sort | uniq | cut -d- -f2- | cut -d" " -f1 | xargs | sed -e 's/ /, /g' | tr -cd '[:alnum:],')
99
COMPOSER_SHOW_EXTENSION_LIST=$(shell echo "${COMPOSER_SHOW_EXTENSION_LIST_PROD},${COMPOSER_SHOW_EXTENSION_LIST_DEV}")
1010
SLIM_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["gd", "vips"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "" : "-slim";')
1111
NTS_OR_ZTS_DOCKER_IMAGE=$(shell php -r 'echo count(array_intersect(["parallel"], explode(",", "${COMPOSER_SHOW_EXTENSION_LIST}"))) > 0 ? "zts" : "nts";')
1212
PHP_VERSION:=$(shell (((command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim php -r "echo json_decode(file_get_contents('`pwd`/composer.json'), true)['config']['platform']['php'];") || echo "8.3") | php -r "echo str_replace('|', '.', explode('.', implode('|', explode('.', stream_get_contents(STDIN), 2)), 2)[0]);")
1313
CONTAINER_NAME=$(shell echo "${CONTAINER_REGISTRY_REPO}:${PHP_VERSION}-${NTS_OR_ZTS_DOCKER_IMAGE}-alpine${SLIM_DOCKER_IMAGE}-dev")
14-
COMPOSER_CACHE_DIR=$(shell composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
14+
COMPOSER_CACHE_DIR=$(shell (command -v docker >/dev/null 2>&1) && docker run --rm -v "`pwd`:`pwd`" -w `pwd` ${CONTAINER_REGISTRY_REPO}:8.4-nts-alpine-slim-dev composer config --global cache-dir -q || echo ${HOME}/.composer-php/cache)
1515
COMPOSER_CONTAINER_CACHE_DIR=$(shell ((command -v docker >/dev/null 2>&1) && docker run --rm -it ${CONTAINER_NAME} composer config --global cache-dir -q) || echo ${HOME}/.composer-php/cache)
1616

1717
ifneq ("$(wildcard /.you-are-in-a-wyrihaximus.net-php-docker-image)","")

composer.json

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,59 @@
11
{
2-
"name": "react-parallel/event-loop",
3-
"description": "\ud83c\udf00\ud83c\udf09\ud83c\udf00 Event Loop bridge to ext-parallel Events",
4-
"license": "MIT",
5-
"authors": [
6-
{
7-
"name": "Cees-Jan Kiewiet",
8-
"email": "ceesjank@gmail.com",
9-
"homepage": "http://wyrihaximus.net/"
10-
}
11-
],
12-
"require": {
13-
"php": "^8.3",
14-
"ext-parallel": "*",
15-
"react/async": "^4.3",
16-
"react/event-loop": "^1.5",
17-
"react/promise": "^3.2",
18-
"wyrihaximus/metrics": "^2.1 || ^3"
19-
},
20-
"require-dev": {
21-
"react-parallel/stubs": "^1.2",
22-
"react/promise-timer": "^1.11",
23-
"wyrihaximus/async-test-utilities": "^9.3.0",
24-
"wyrihaximus/makefiles": "^0.5.0"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"ReactParallel\\EventLoop\\": "src/"
29-
}
30-
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"ReactParallel\\Tests\\EventLoop\\": "tests/"
34-
}
2+
"name": "react-parallel/event-loop",
3+
"description": "\ud83c\udf00\ud83c\udf09\ud83c\udf00 Event Loop bridge to ext-parallel Events",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Cees-Jan Kiewiet",
8+
"email": "ceesjank@gmail.com",
9+
"homepage": "http://wyrihaximus.net/"
10+
}
11+
],
12+
"require": {
13+
"php": "^8.4",
14+
"ext-parallel": "*",
15+
"react/async": "^4.3",
16+
"react/event-loop": "^1.5",
17+
"react/promise": "^3.2",
18+
"wyrihaximus/metrics": "^3"
19+
},
20+
"require-dev": {
21+
"react-parallel/stubs": "^1.2",
22+
"react/promise-timer": "^1.11",
23+
"wyrihaximus/async-test-utilities": "^10.1.0",
24+
"wyrihaximus/makefiles": "^0.6.0"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"ReactParallel\\EventLoop\\": "src/"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"ReactParallel\\Tests\\EventLoop\\": "tests/"
34+
}
35+
},
36+
"config": {
37+
"allow-plugins": {
38+
"dealerdirect/phpcodesniffer-composer-installer": true,
39+
"ergebnis/composer-normalize": true,
40+
"icanhazstring/composer-unused": true,
41+
"infection/extension-installer": true,
42+
"phpstan/extension-installer": true,
43+
"wyrihaximus/makefiles": true,
44+
"wyrihaximus/test-utilities": true
3545
},
36-
"config": {
37-
"allow-plugins": {
38-
"dealerdirect/phpcodesniffer-composer-installer": true,
39-
"ergebnis/composer-normalize": true,
40-
"icanhazstring/composer-unused": true,
41-
"infection/extension-installer": true,
42-
"phpstan/extension-installer": true,
43-
"wyrihaximus/makefiles": true
44-
},
45-
"platform": {
46-
"php": "8.3.13"
47-
},
48-
"sort-packages": true
46+
"platform": {
47+
"php": "8.4.13"
4948
},
50-
"scripts": {
51-
"post-install-cmd": [
52-
"composer normalize"
53-
],
54-
"post-update-cmd": [
55-
"composer normalize"
56-
]
57-
}
49+
"sort-packages": true
50+
},
51+
"scripts": {
52+
"post-install-cmd": [
53+
"make on-install-or-update || true"
54+
],
55+
"post-update-cmd": [
56+
"make on-install-or-update || true"
57+
]
58+
}
5859
}

0 commit comments

Comments
 (0)