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 [2026/07/20 17:54] – [PHP] 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' | ||
| Line 83: | Line 85: | ||
| } | } | ||
| } | } | ||
| + | </ | ||
| + | |||
| + | ==== 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-> | ||
| </ | </ | ||
doc/appunti/linux/sa/debian_upgrade_11_12.1784562881.txt.gz · Last modified: by niccolo
