doc:appunti:linux:sa:debian_upgrade_11_12
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:debian_upgrade_11_12 [2025/06/24 11:52] – [Configuration with TLS] niccolo | doc:appunti:linux:sa:debian_upgrade_11_12 [2026/07/20 18:12] (current) – [Sintassi per costruttore di classe PHP] niccolo | ||
|---|---|---|---|
| Line 58: | Line 58: | ||
| ===== PHP ===== | ===== PHP ===== | ||
| + | |||
| + | ==== get_magic_quotes_gpc() ==== | ||
| Con l' | Con l' | ||
| + | |||
| + | ==== Sintassi per costruttore di classe PHP ==== | ||
| + | |||
| + | PHP 4 usava una convezione per i costruttori di classe: un metodo con lo stesso nome della sua classe veniva automaticamente trattato come costruttore ed eseguito su **new className()**: | ||
| + | |||
| + | <code php> | ||
| + | class className { | ||
| + | protected $varName; | ||
| + | function className() { | ||
| + | $this-> | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Tale convenzione è stata deprecata in PHP 7.0 e rimossa completamente in PHP 8.0. Questa è la nuova sintassi necessaria: | ||
| + | |||
| + | <code php> | ||
| + | class className { | ||
| + | protected $varName; | ||
| + | function __construct() { | ||
| + | $this-> | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== PHP dbConnect-> | ||
| + | |||
| + | Con le versioni precedenti di PHP era possibile usare una sintassi del tipo: | ||
| + | |||
| + | <code php> | ||
| + | $stmt = $this-> | ||
| + | if ($stmt) { | ||
| + | // Do something | ||
| + | } | ||
| + | $stmt = $this-> | ||
| + | </ | ||
| + | |||
| + | Con il nuovo PHP è necessario chiudere il primo statement prima di aprirne uno nuovo, altrimenti si ottiene l' | ||
| + | |||
| + | < | ||
| + | PHP Fatal error: | ||
| + | you can't run this command now in / | ||
| + | </ | ||
| + | |||
| + | La soluzione è chiudere lo statement prima di aprirne un altro: | ||
| + | |||
| + | <code php> | ||
| + | $stmt = $this-> | ||
| + | if ($stmt) { | ||
| + | // Do something | ||
| + | $stmt-> | ||
| + | } | ||
| + | $stmt = $this-> | ||
| + | </ | ||
| ===== SpamAssassin ===== | ===== SpamAssassin ===== | ||
| Line 147: | Line 203: | ||
| # The --cipher option should not be used any longer with OpenVPN 2.6 in TLS mode. | # The --cipher option should not be used any longer with OpenVPN 2.6 in TLS mode. | ||
| #cipher AES-256-CBC | #cipher AES-256-CBC | ||
| - | # Use --data-ciphers | + | # Use --data-ciphers |
| - | # e.g. for clients using OpenVPN 2.3. | + | data-ciphers AES-256-GCM: |
| - | data-ciphers AES-256-GCM: | + | |
| # Use --data-ciphers-fallback for peers that are old or have negotiation disabled, | # Use --data-ciphers-fallback for peers that are old or have negotiation disabled, | ||
| # e.g. peers running OpenVPN 2.3 or older, or some embedded devices. | # e.g. peers running OpenVPN 2.3 or older, or some embedded devices. | ||
| Line 396: | Line 451: | ||
| ssh \ | ssh \ | ||
| -o KexAlgorithms=+diffie-hellman-group1-sha1 \ | -o KexAlgorithms=+diffie-hellman-group1-sha1 \ | ||
| - | -o HostKeyAlgorithms=+ssh-dss \ | + | -o HostKeyAlgorithms=+ssh-dss, |
| -o PubkeyAcceptedKeyTypes=+ssh-rsa \ | -o PubkeyAcceptedKeyTypes=+ssh-rsa \ | ||
| root@83.149.110.120 | root@83.149.110.120 | ||
| </ | </ | ||
| + | |||
| + | ===== Crittografia SSL ===== | ||
| + | |||
| + | Con l' | ||
doc/appunti/linux/sa/debian_upgrade_11_12.1750758749.txt.gz · Last modified: by niccolo
