Skip to content

Commit 30fe0c2

Browse files
authored
Merge pull request #6897 from kenjis/fix-required-php-ext
fix: required PHP extentions
2 parents 8aba936 + fc0a497 commit 30fe0c2

7 files changed

Lines changed: 26 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,13 @@ Made with [contrib.rocks](https://contrib.rocks).
8787
PHP version 7.4 or higher is required, with the following extensions installed:
8888

8989
- [intl](http://php.net/manual/en/intl.requirements.php)
90-
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
9190
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
9291

9392
Additionally, make sure that the following extensions are enabled in your PHP:
9493

9594
- json (enabled by default - don't turn it off)
96-
- xml (enabled by default - don't turn it off)
9795
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
96+
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
9897

9998
## Running CodeIgniter Tests
10099

admin/framework/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/
4545
PHP version 7.4 or higher is required, with the following extensions installed:
4646

4747
- [intl](http://php.net/manual/en/intl.requirements.php)
48-
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
4948
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
5049

5150
Additionally, make sure that the following extensions are enabled in your PHP:
5251

5352
- json (enabled by default - don't turn it off)
54-
- xml (enabled by default - don't turn it off)
5553
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
54+
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

admin/framework/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"license": "MIT",
77
"require": {
88
"php": "^7.4 || ^8.0",
9-
"ext-curl": "*",
109
"ext-intl": "*",
1110
"ext-json": "*",
1211
"ext-mbstring": "*",
@@ -24,6 +23,7 @@
2423
"predis/predis": "^1.1 || ^2.0"
2524
},
2625
"suggest": {
26+
"ext-curl": "If you use CURLRequest class",
2727
"ext-imagick": "If you use Image class ImageMagickHandler",
2828
"ext-gd": "If you use Image class GDHandler",
2929
"ext-exif": "If you run Image class tests",

admin/starter/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,10 @@ Problems with it can be raised on our forum, or as issues in the main repository
5353
PHP version 7.4 or higher is required, with the following extensions installed:
5454

5555
- [intl](http://php.net/manual/en/intl.requirements.php)
56-
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library
5756
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
5857

5958
Additionally, make sure that the following extensions are enabled in your PHP:
6059

6160
- json (enabled by default - don't turn it off)
62-
- xml (enabled by default - don't turn it off)
6361
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
62+
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"license": "MIT",
77
"require": {
88
"php": "^7.4 || ^8.0",
9-
"ext-curl": "*",
109
"ext-intl": "*",
1110
"ext-json": "*",
1211
"ext-mbstring": "*",
@@ -29,6 +28,7 @@
2928
"rector/rector": "0.14.8"
3029
},
3130
"suggest": {
31+
"ext-curl": "If you use CURLRequest class",
3232
"ext-imagick": "If you use Image class ImageMagickHandler",
3333
"ext-gd": "If you use Image class GDHandler",
3434
"ext-exif": "If you run Image class tests",

system/CodeIgniter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,9 @@ public function initialize()
205205
protected function resolvePlatformExtensions()
206206
{
207207
$requiredExtensions = [
208-
'curl',
209208
'intl',
210209
'json',
211210
'mbstring',
212-
'xml',
213211
];
214212

215213
$missingExtensions = [];

user_guide_src/source/intro/requirements.rst

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,31 @@
22
Server Requirements
33
###################
44

5-
`PHP <https://www.php.net/>`_ version 7.4 or newer is required, with the
6-
`*intl* extension <https://www.php.net/manual/en/intl.requirements.php>`_ and `*mbstring* extension <https://www.php.net/manual/en/mbstring.requirements.php>`_
7-
installed.
5+
`PHP <https://www.php.net/>`_ version 7.4 or newer is required, with the following PHP extensions are enabled:
6+
7+
- `intl <https://www.php.net/manual/en/intl.requirements.php>`_
8+
- `mbstring <https://www.php.net/manual/en/mbstring.requirements.php>`_
9+
- `json <https://www.php.net/manual/en/json.requirements.php>`_
810

911
The following PHP extensions should be enabled on your server:
1012

11-
- ``php-json``
12-
- ``php-mysqlnd`` (if you use MySQL)
13-
- ``php-xml``
13+
- `mysqlnd <https://www.php.net/manual/en/mysqlnd.install.php>`_ (if you use MySQL)
14+
- `curl <https://www.php.net/manual/en/curl.requirements.php>`_ (if you use :doc:`CURLRequest </libraries/curlrequest>`)
15+
- `imagick <https://www.php.net/manual/en/imagick.requirements.php>`_ (if you use :doc:`Image </libraries/images>` class ImageMagickHandler)
16+
- `gd <https://www.php.net/manual/en/image.requirements.php>`_ (if you use :doc:`Image </libraries/images>` class GDHandler)
17+
- `simplexml <https://www.php.net/manual/en/simplexml.requirements.php>`_ (if you format XML)
18+
19+
The following PHP extensions are required when you use a Cache server:
20+
21+
- `memcache <https://www.php.net/manual/en/memcache.requirements.php>`_ (if you use :doc:`Cache </libraries/caching>` class MemcachedHandler with Memcache)
22+
- `memcached <https://www.php.net/manual/en/memcached.requirements.php>`_ (if you use :doc:`Cache </libraries/caching>` class MemcachedHandler with Memcached)
23+
- `redis <https://github.com/phpredis/phpredis>`_ (if you use :doc:`Cache </libraries/caching>` class RedisHandler)
24+
25+
The following PHP extensions are required when you use PHPUnit:
1426

15-
In order to use the :doc:`CURLRequest </libraries/curlrequest>`, you will need
16-
`libcurl <https://www.php.net/manual/en/curl.requirements.php>`_ installed.
27+
- `dom <https://www.php.net/manual/en/dom.requirements.php>`_ (if you use :doc:`TestResponse </testing/response>` class)
28+
- `libxml <https://www.php.net/manual/en/libxml.requirements.php>`_ (if you use :doc:`TestResponse </testing/response>` class)
29+
- `xdebug <https://xdebug.org/docs/install>`_ (if you use ``CIUnitTestCase::assertHeaderEmitted()``)
1730

1831
A database is required for most web application programming.
1932
Currently supported databases are:

0 commit comments

Comments
 (0)