Skip to content

Commit ac2f353

Browse files
committed
replace internal use of fopen and cURL fallback with Guzzle library
1 parent 9156341 commit ac2f353

File tree

6 files changed

+642
-106
lines changed

6 files changed

+642
-106
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,13 @@ jobs:
3535
if [ "${{ matrix.php-version }}" != "8.5" ]; then rm composer.lock; fi
3636
composer install --no-progress --no-suggest --no-interaction
3737
38-
- name: Run phpunit tests (with and without cURL)
39-
run: |
40-
./vendor/bin/phpunit --display-deprecations
41-
SKIP_CURL=1 ./vendor/bin/phpunit --display-deprecations
38+
- name: Run phpunit tests
39+
run: ./vendor/bin/phpunit --display-deprecations
4240

43-
- name: Run proxy tests (with and without cURL)
41+
- name: Run proxy tests
4442
run: |
4543
docker run -d --name=tinyproxy -p 8888:8888 monokal/tinyproxy:latest ANY
4644
PROXY=http://0.0.0.0:8888 ./vendor/bin/phpunit
47-
PROXY=http://0.0.0.0:8888 SKIP_CURL=1 ./vendor/bin/phpunit
4845
docker rm -f tinyproxy
4946
5047
- name: Run PHPCS (Code Sniffer)

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
unreleased
2+
=====================================================
3+
- replace internal use of fopen and cURL fallback with Guzzle library
4+
15
3.4.0 -- Sat Mar 29 2026
26
=====================================================
37
- deprecate PHP 8.1

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
}
1616
},
1717
"require": {
18-
"php": ">=8.2"
18+
"php": ">=8.2",
19+
"guzzlehttp/guzzle": "^7.0"
1920
},
2021
"require-dev": {
2122
"phpunit/phpunit": "^12.5.8",
@@ -24,13 +25,11 @@
2425
},
2526
"scripts": {
2627
"test": "phpunit --display-deprecations",
27-
"test:nocurl": "SKIP_CURL=1 phpunit --display-deprecations",
2828
"phpcs": "phpcs .",
2929
"phpstan": "phpstan analyse",
3030
"check": [
3131
"composer validate --strict",
3232
"@test",
33-
"@test:nocurl",
3433
"@phpcs",
3534
"@phpstan"
3635
]

0 commit comments

Comments
 (0)