Skip to content

Commit 7db8072

Browse files
authored
Merge pull request #65 from reactphp-parallel/4.x-PHP-8.4
Update to PHP 8.4+
2 parents 741f05c + 100fcc8 commit 7db8072

3 files changed

Lines changed: 1013 additions & 1478 deletions

File tree

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: 63 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,68 @@
11
{
2-
"name": "react-parallel/pool-tests",
3-
"description": "\ud83c\udfb1 Pool tests for bridging ext-parallel and ReactPHP",
4-
"license": "MIT",
5-
"authors": [
6-
{
7-
"name": "Cees-Jan Kiewiet",
8-
"email": "ceesjank@gmail.com",
9-
"homepage": "https://www.wyrihaximus.net/"
10-
}
11-
],
12-
"require": {
13-
"php": "^8.3",
14-
"ext-parallel": "*",
15-
"moneyphp/money": "^4.7.0",
16-
"phpunit/phpunit": "^12.1.6",
17-
"react-parallel/contracts": "^2.1.0",
18-
"react-parallel/event-loop": "^2.1.0",
19-
"react/event-loop": "^1.5",
20-
"react/promise": "^3.2",
21-
"wyrihaximus/async-test-utilities": "^9.3.0",
22-
"wyrihaximus/pool-info": "^2.0"
23-
},
24-
"require-dev": {
25-
"react-parallel/runtime": "^3",
26-
"wyrihaximus/makefiles": "^0.5.0"
27-
},
28-
"autoload": {
29-
"psr-4": {
30-
"ReactParallel\\Tests\\": "src/"
31-
}
32-
},
33-
"autoload-dev": {
34-
"psr-4": {
35-
"ReactParallel\\Tests\\Tests\\": "tests/"
36-
}
37-
},
38-
"config": {
39-
"allow-plugins": {
40-
"dealerdirect/phpcodesniffer-composer-installer": true,
41-
"ergebnis/composer-normalize": true,
42-
"icanhazstring/composer-unused": true,
43-
"infection/extension-installer": true,
44-
"phpstan/extension-installer": true,
45-
"wyrihaximus/makefiles": true
46-
},
47-
"platform": {
48-
"php": "8.3.13"
49-
},
50-
"sort-packages": true
2+
"name": "react-parallel/pool-tests",
3+
"description": "\ud83c\udfb1 Pool tests for bridging ext-parallel and ReactPHP",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Cees-Jan Kiewiet",
8+
"email": "ceesjank@gmail.com",
9+
"homepage": "https://www.wyrihaximus.net/"
10+
}
11+
],
12+
"require": {
13+
"php": "^8.4",
14+
"ext-parallel": "*",
15+
"moneyphp/money": "^4.7.0",
16+
"phpunit/phpunit": "^12.1.6",
17+
"react-parallel/contracts": "^2.1.0",
18+
"react-parallel/event-loop": "^2.1.0",
19+
"react/event-loop": "^1.5",
20+
"react/promise": "^3.2",
21+
"wyrihaximus/async-test-utilities": "^10.1.0",
22+
"wyrihaximus/pool-info": "^2.0"
23+
},
24+
"require-dev": {
25+
"react-parallel/runtime": "^3",
26+
"wyrihaximus/makefiles": "^0.6.0"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"ReactParallel\\Tests\\": "src/"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"ReactParallel\\Tests\\Tests\\": "tests/"
36+
}
37+
},
38+
"config": {
39+
"allow-plugins": {
40+
"dealerdirect/phpcodesniffer-composer-installer": true,
41+
"ergebnis/composer-normalize": true,
42+
"icanhazstring/composer-unused": true,
43+
"infection/extension-installer": true,
44+
"phpstan/extension-installer": true,
45+
"wyrihaximus/makefiles": true,
46+
"wyrihaximus/test-utilities": true
5147
},
52-
"extra": {
53-
"phpstan": {
54-
"includes": [
55-
"extension.neon"
56-
]
57-
}
48+
"platform": {
49+
"php": "8.4.13"
5850
},
59-
"scripts": {
60-
"post-install-cmd": [
61-
"composer normalize"
62-
],
63-
"post-update-cmd": [
64-
"composer normalize"
65-
]
51+
"sort-packages": true
52+
},
53+
"extra": {
54+
"phpstan": {
55+
"includes": [
56+
"extension.neon"
57+
]
6658
}
59+
},
60+
"scripts": {
61+
"post-install-cmd": [
62+
"make on-install-or-update || true"
63+
],
64+
"post-update-cmd": [
65+
"make on-install-or-update || true"
66+
]
67+
}
6768
}

0 commit comments

Comments
 (0)