Diogo Correia
f309829221
nixos/phpfpm: escape ini values
...
Passing a value that contains special characters (e.g., `=`) causes
phpfpm to be unable to parse the configuration file.
As per PHP's parse_ini_file function documentation [1], all values
containing non-alphanumeric characters must be enclosed in double
quotes:
> If a value in the ini file contains any non-alphanumeric characters it
> needs to be enclosed in double-quotes (").
This commit ensures string values are enclosed in double-quotes, and
appropriately escapes double-quotes, backslashes, and line breaks.
[1]: https://www.php.net/parse_ini_file
2026-07-03 20:18:50 +01:00
Martin Weinelt
a9202f95da
nixos/test/php: migrate to nspawn, modernize
...
They boot up quicker now, which is why the curl needs a retry mechanism.
Also uses proper unittest asserts, which provide good feedback on error.
2026-06-22 23:05:13 +02:00
Piotr Kwiecinski
e44f5a37cf
nixosTests.php: migrate to runTest
2025-03-15 22:55:13 +05:30
Robert Hensing
aa0f27abb0
treewide: machine -> nodes.machine
2022-03-28 14:11:58 +02:00
Sandro Jäckel
ae66e2d5ec
treewide: use configured nginx package
2022-02-08 12:13:30 +01:00
Elis Hirwing
94d07b7492
php: Run nixpkgs-fmt on all php related files
2021-06-26 20:07:56 +02:00
Maximilian Bosch
5e5f482f32
nixos/tests/php: add apcu to php to actually test whether extensions are properly loaded
2021-03-04 16:06:37 +01:00
Maximilian Bosch
70ac808b39
nixos/tests/php/fpm: make sure that extensions are actually loaded
...
The phpinfo output from 127.0.0.1:80 only shows configuration options
and thus leads to false-positives.
2021-03-04 15:59:38 +01:00
taku0
61706fc470
Merge pull request #114853 from lourkeur/fix-string-escaping
...
nixos/kresd, nixos/dokuwiki, tests/fpm, build-bazel-package, libcutl: fix string escaping
2021-03-03 19:35:16 +09:00
Elis Hirwing
c6f0a1db39
nixos/tests/php: Declare php package used instead of just using default
2021-02-28 12:37:05 +01:00
kvtb
2d6926b64b
fpm.nix: fix string escaping
...
\. has no effect in single quoted strings
2020-12-31 23:50:51 +00:00
Scott Worley
1332215d59
nixos/tests/php: Use curl --fail
2020-10-25 11:01:30 +01:00
Elis Hirwing
3e10bd8762
nixosTests.php: Add maintainer team as maintainers
2020-04-29 20:17:08 +02:00
Elis Hirwing
410c38f317
Revert "PHP maintainer team"
2020-04-29 19:56:37 +02:00
Elis Hirwing
9be2cbf27b
nixosTests.php: Add maintainer team as maintainers
2020-04-22 06:48:06 +02:00
Jan Tojnar
23a6903bb7
nixosTests.php.fpm: Clean up to match httpd test
2020-04-17 14:41:20 +02:00
Elis Hirwing
29e1f0d169
nixos/php: Add tests for phpfpm
...
This test checks that we evaluate PHP properly and that certain
extensions are actually loaded.
2020-04-05 16:44:54 +02:00