Commit Graph

525 Commits

Author SHA1 Message Date
Elis Hirwing
b080bcbedf
Merge pull request #208928 from drupol/php/bumps-january-2023
php interpreter: bumps
2023-01-09 08:23:25 +01:00
Pol Dellaiera
142ac0ba91
php: add updateScript 2023-01-05 13:42:31 +01:00
Pol Dellaiera
041d551384
php81: 8.1.13 -> 8.1.14 2023-01-04 21:42:24 +01:00
Pol Dellaiera
793d5252be
php82: 8.2.0 -> 8.2.1 2023-01-03 21:57:26 +01:00
Pol Dellaiera
19e31cd677
php80: 8.0.26 -> 8.0.27 2023-01-03 21:51:47 +01:00
Elis Hirwing
d7cf24f2fa
php82: 8.2.0-rc7 -> 8.2.0 2022-12-07 14:38:20 +01:00
Pol Dellaiera
5a736d1ee2
php80: 8.0.25 -> 8.0.26
Changelog: https://www.php.net/ChangeLog-8.php#8.0.26
2022-11-27 09:29:02 +01:00
Pol Dellaiera
aa634993cd php82: 8.2.0rc6 -> 8.2.0rc7
News: https://github.com/php/php-src/blob/php-8.2.0RC7/NEWS
2022-11-25 09:32:07 +01:00
Pol Dellaiera
a8b76c097a php81: 8.1.12 -> 8.1.13
Changelog: https://www.php.net/ChangeLog-8.php#8.1.13
2022-11-25 09:31:53 +01:00
Maximilian Bosch
2580440389
Merge pull request #198470 from RaitoBezarius/nc25-openssl
nextcloud25: use openssl 1.1 as a PHP extension to fix RC4 encryption
2022-11-20 18:32:41 +01:00
Pol Dellaiera
1812d1540e
php82: init at 8.2.0rc6 2022-11-16 18:57:26 +01:00
Pol Dellaiera
364a7d2920
php: switch to nts by default 2022-11-13 11:47:27 +01:00
Maximilian Bosch
35b146ca31
nixos/nextcloud: fixup openssl compat change
Upon testing the change itself I realized that it doesn't build properly
because

* the `pname` of a php extension is `php-<name>`, not `<name>`.
* calling the extension `openssl-legacy` resulted in PHP trying to compile
  `ext/openssl-legacy` which broke since it doesn't exist:

      source root is php-8.1.12
      setting SOURCE_DATE_EPOCH to timestamp 1666719000 of file php-8.1.12/win32/wsyslog.c
      patching sources
      cdToExtensionRootPhase
      /nix/store/48mnkga4kh84xyiqwzx8v7iv090i7z66-stdenv-linux/setup: line 1399: cd: ext/openssl-legacy: No such file or directory

I didn't encounter that one before because I was mostly interested in
having a sane behavior for everyone not using this "feature" and the
documentation around this. My findings about the behavior with turning
openssl1.1 on/off are still valid because I tested this on `master` with
manually replacing `openssl` by `openssl_1_1` in `php-packages.nix`.

To work around the issue I had to slightly modify the extension
build-system for PHP:

* The attribute `extensionName` is now relevant to determine the output
  paths (e.g. `lib/openssl.so`). This is not a behavioral change for
  existing extensions because then `extensionName==name`.

  However when specifying `extName` in `php-packages.nix` this value is
  overridden and it is made sure that the extension called `extName` NOT
  `name` (i.e. `openssl` vs `openssl-legacy`) is built and installed.

  The `name` still has to be kept to keep the legacy openssl available
  as `php.extensions.openssl-legacy`.

Additionally I implemented a small VM test to check the behavior with
server-side encryption:

* For `stateVersion` below 22.11, OpenSSL 1.1 is used (in `basic.nix`
  it's checked that OpenSSL 3 is used). With that the "default"
  behavior of the module is checked.

* It is ensured that the PHP interpreter for Nextcloud's php-fpm
  actually loads the correct openssl extension.

* It is tested that (encrypted) files remain usable when (temporarily)
  installing OpenSSL3 (of course then they're not decryptable, but on a
  rollback that should still be possible).

Finally, a few more documentation changes:

* I also mentioned the issue in `nextcloud.xml` to make sure the issue
  is at least mentioned in the manual section about Nextcloud. Not too
  much detail here, but the relevant option `enableBrokenCiphersForSSE`
  is referenced.

* I fixed a few minor wording issues to also give the full context
  (we're talking about Nextcloud; we're talking about the PHP extension
  **only**; please check if you really need this even though it's
  enabled by default).

  This is because I felt that sometimes it might be hard to understand
  what's going on when e.g. an eval-warning appears without telling where
  exactly it comes from.
2022-11-11 14:45:46 +01:00
Pol Dellaiera
f8cd3d8b2b
php81: 8.1.11 -> 8.1.12 2022-10-29 08:34:15 +02:00
Pol Dellaiera
305a0e8e65
php80: 8.0.24 -> 8.0.25 2022-10-29 08:33:57 +02:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Pol Dellaiera
d81b7507f0 php: enable imap extension by default 2022-10-03 10:06:48 +02:00
Shyim
6350f1b106
php: enable sysvsem by default 2022-10-01 16:58:45 +02:00
Pol Dellaiera
51ada90c64
php81: 8.1.10 -> 8.1.11 2022-09-30 09:38:38 +02:00
Pol Dellaiera
0d87d2232a
php80: 8.0.23 -> 8.0.24 2022-09-30 09:38:26 +02:00
Elis Hirwing
7986fac217
Merge pull request #190877 from drupol/php/bump-to-8.0.23
php80: 8.0.22 -> 8.0.23
2022-09-12 07:53:49 +02:00
Pol Dellaiera
5f1dfe2c0f
php80: 8.0.22 -> 8.0.23 2022-09-12 07:17:16 +02:00
Tomasz Hanc
0a586cd4d5 php: 8.1.9 -> 8.1.10 2022-09-11 22:55:18 +02:00
ajs124
da6ccfbab2 php81: 8.1.8 -> 8.1.9
https://www.php.net/ChangeLog-8.php#8.1.9
2022-08-05 00:20:10 +02:00
ajs124
2b483c62db php80: 8.0.21 -> 8.0.22
https://www.php.net/ChangeLog-8.php#8.0.22
2022-08-05 00:19:54 +02:00
ajs124
e416f8806d php81: 8.1.7 -> 8.1.8
Fixes CVE-2022-31627

https://www.php.net/ChangeLog-8.php#8.1.8
2022-07-08 18:24:36 +02:00
ajs124
b429bc2508 php80: 8.0.20 -> 8.0.21
https://www.php.net/ChangeLog-8.php#8.0.21
2022-07-08 18:23:30 +02:00
ajs124
3020f0014c php: sha256 -> hash 2022-07-08 18:22:14 +02:00
Elis Hirwing
b6d8d68ce9
Merge pull request #177136 from drupol/php/bumps-june-2022
PHP Bumps
2022-06-10 15:51:18 +02:00
Pol Dellaiera
5d890c086a
php81: 8.1.6 -> 8.1.7 2022-06-10 12:27:08 +02:00
Pol Dellaiera
24e9824ddb
php80: 8.0.19 -> 8.0.20 2022-06-10 12:27:08 +02:00
Elis Hirwing
e91811bbe1
php74: Drop PHP 7.4 and add aliases throwing an error 2022-06-08 18:11:55 +02:00
Pol Dellaiera
e76ad56103
php81: 8.1.5 -> 8.1.6 2022-05-13 09:14:47 +02:00
Pol Dellaiera
229d9938da
php80: 8.0.18 -> 8.0.19 2022-05-13 09:14:35 +02:00
Jan Tojnar
b4c6e5f345 php: Remove fixes for abandoned PHP versions 2022-05-10 01:23:39 +02:00
Jan Tojnar
d4884bbc9e php.extensions: Remove fixes for abandoned PHP versions 2022-05-10 00:37:55 +02:00
Anders Kaseorg
6920d8ca42 treewide: Simplify negated uses of versionAtLeast, versionOlder
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-04-25 13:35:24 -07:00
Shyim
994b6400c8
php: remove whitespace 2022-04-22 10:24:55 +02:00
Shyim
8fb8ccb179
php: fix extensions on php-cgi 2022-04-22 10:16:29 +02:00
Pol Dellaiera
abb096f629
php80: 8.0.17 -> 8.0.18 2022-04-14 15:43:35 +02:00
Pol Dellaiera
47d7d17126
php81: 8.1.4 -> 8.1.5 2022-04-13 20:07:25 +02:00
Pol Dellaiera
ba45a559b5
php74: 7.4.28 -> 7.4.29 2022-04-13 20:07:08 +02:00
Pol Dellaiera
a5911f1597 php81: 8.1.3 -> 8.1.4 2022-03-18 13:23:25 +01:00
Pol Dellaiera
1e395cf2e8 php80: 8.0.16 -> 8.0.17 2022-03-17 12:00:54 +01:00
Pol Dellaiera
96983152e7
php81: 8.1.2 -> 8.1.3 2022-02-20 11:07:32 +01:00
Pol Dellaiera
60dfe5bd6c
php80: 8.0.14 -> 8.0.16 2022-02-20 11:07:32 +01:00
Pol Dellaiera
b1cd925484
php74: 7.4.27 -> 7.4.28 2022-02-20 11:07:31 +01:00
Pol Dellaiera
6794a2c3f6
php81: 8.1.1 -> 8.1.2 2022-01-23 18:23:57 +01:00
Pol Dellaiera
5fc1a37f1b
php: 8.0.13 -> 8.0.14 2022-01-17 08:08:09 +01:00
Pol Dellaiera
6e4afa39a5
php: 7.4.26 -> 7.4.27 2022-01-17 08:07:49 +01:00