Màj 06-04-2024
This commit is contained in:
@@ -130,3 +130,140 @@ $ sphp 7.4
|
||||
|
||||
|
||||
|
||||
#### Xdebug
|
||||
|
||||
##### Installation:
|
||||
|
||||
```bash
|
||||
$ sphp 8.2
|
||||
$ pecl uninstall -r xdebug
|
||||
$ pecl install xdebug
|
||||
```
|
||||
|
||||
```bash
|
||||
$ sphp 8.3
|
||||
$ pecl uninstall -r xdebug
|
||||
$ pecl install xdebug-3.3.0alpha3
|
||||
```
|
||||
|
||||
##### Configuration:
|
||||
|
||||
```bash
|
||||
$ bbedit /opt/homebrew/etc/php/8.2/conf.d/ext-xdebug.ini
|
||||
$ bbedit /opt/homebrew/etc/php/8.3/conf.d/ext-xdebug.ini
|
||||
```
|
||||
|
||||
```http
|
||||
[xdebug]
|
||||
zend_extension="xdebug.so"
|
||||
xdebug.mode=debug
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Xdebug Switcher:
|
||||
|
||||
##### Installation:
|
||||
|
||||
```bash
|
||||
$ curl -L https://gist.githubusercontent.com/rhukster/073a2c1270ccb2c6868e7aced92001cf/raw/c1629293bcf628cd6ded20c201c4ef0a2fa79144/xdebug > /opt/homebrew/bin/xdebug
|
||||
$ chmod +x /opt/homebrew/bin/xdebug
|
||||
```
|
||||
|
||||
```bash
|
||||
$ xdebug
|
||||
|
||||
Usage: xdebug <on | off> [--no-server-restart]
|
||||
|
||||
You are running PHP v8.2 with Xdebug enabled
|
||||
|
||||
PHP 8.2.14 (cli) (built: Dec 20 2023 06:28:06) (NTS)
|
||||
Copyright (c) The PHP Group
|
||||
Zend Engine v4.2.14, Copyright (c) Zend Technologies
|
||||
with Zend OPcache v8.2.14, Copyright (c), by Zend Technologies
|
||||
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### APCu
|
||||
|
||||
##### Installation:
|
||||
|
||||
```bash
|
||||
$ pecl install apcu
|
||||
# fatal error: 'pcre2.h' file not found
|
||||
|
||||
$ ln -s /opt/homebrew/Cellar/pcre2/10.42/include/pcre2.h /opt/homebrew/Cellar/php/
|
||||
|
||||
ln -s /opt/homebrew/Cellar/pcre2/10.42/include/pcre2.h /opt/homebrew/Cellar/php/8.3.1/include/php/ext/pcre/pcre2.h
|
||||
|
||||
ln -s /opt/homebrew/Cellar/pcre2/10.42/include/pcre2.h /opt/homebrew/Cellar/php@8.2/8.2.14/include/php/ext/pcre/pcre2.h
|
||||
```
|
||||
|
||||
```bash
|
||||
$ sphp 8.2
|
||||
$ pecl install apcu
|
||||
```
|
||||
|
||||
```bash
|
||||
$ sphp 8.3
|
||||
$ pecl uninstall -r apcu
|
||||
$ pecl install apcu
|
||||
```
|
||||
|
||||
##### Configuration:
|
||||
|
||||
```bash
|
||||
$ bbedit /opt/homebrew/etc/php/8.2/conf.d/ext-apcu.ini
|
||||
$ bbedit /opt/homebrew/etc/php/8.3/conf.d/ext-apcu.ini
|
||||
```
|
||||
|
||||
```http
|
||||
[apcu]
|
||||
extension="apcu.so"
|
||||
apc.enabled=1
|
||||
apc.shm_size=64M
|
||||
apc.ttl=7200
|
||||
apc.enable_cli=1
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### YAML
|
||||
|
||||
Installation:
|
||||
|
||||
```bash
|
||||
$ brew install libyaml
|
||||
```
|
||||
|
||||
```bash
|
||||
$ sphp 8.2
|
||||
$ pecl install yaml
|
||||
|
||||
# Au prompt "Please provide the prefix of libyaml installation [autodetect]", entrer:
|
||||
# /opt/homebrew/Cellar/libyaml/0.2.5
|
||||
```
|
||||
|
||||
```bash
|
||||
$ sphp 8.3
|
||||
$ pecl uninstall -r yaml
|
||||
$ pecl install yaml
|
||||
|
||||
# Au prompt "Please provide the prefix of libyaml installation [autodetect]", entrer:
|
||||
# /opt/homebrew/Cellar/libyaml/0.2.5
|
||||
```
|
||||
|
||||
##### Configuration:
|
||||
|
||||
```bash
|
||||
$ bbedit /opt/homebrew/etc/php/8.2/conf.d/ext-yaml.ini
|
||||
$ bbedit /opt/homebrew/etc/php/8.3/conf.d/ext-yaml.ini
|
||||
```
|
||||
|
||||
```http
|
||||
[yaml]
|
||||
extension="yaml.so"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user