2 testString = "can-use-subgroups";
4 import ../make-test-python.nix ({ lib, php, ... }: {
5 name = "php-${php.version}-httpd-pcre-jit-test";
6 meta.maintainers = lib.teams.php.members;
8 nodes.machine = { lib, pkgs, ... }: {
12 adminAddr = "please@dont.contact";
15 phpOptions = "pcre.jit = true";
18 testRoot = pkgs.writeText "index.php"
21 preg_match('/(${testString})/', '${testString}', $result);
28 <Directory ${testRoot}>
36 machine.wait_for_unit("httpd.service")
37 # Ensure php evaluation by matching on the var_dump syntax
38 response = machine.succeed("curl -fvvv -s http://127.0.0.1:80/index.php")
39 expected = 'string(${toString (builtins.stringLength testString)}) "${testString}"'
40 assert expected in response, "Does not appear to be able to use subgroups."