Skip to content

Commit

Permalink
BC: Rename .php.ini into .user.ini.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 7, 2022
1 parent 79fb8a9 commit 5001b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ nix shell github:loophp/nix-shell#php81
php -c /path/to/the/config.ini <<command>>
```
Another option would be to create a `.php.ini` file within your
[Another option][doc .user.ini] would be to create a `.user.ini` file within your
current working directory before running the PHP environment,
as such:
Expand Down Expand Up @@ -199,4 +199,5 @@ For more detailed changelogs, please check [the release changelogs][45].
[47]: https://github.com/jtojnar
[48]: https://github.com/fossar/nix-phps
[50]: https://nixos.org/download.html
[52]: https://github.com/aanderse
[52]: https://github.com/aanderse
[doc .user.ini]: https://www.php.net/manual/en/configuration.file.per-user.php
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
# Convert the set into a list, filter out values not starting with "ext-", get rid of the first 4 characters from the name
userExtensions = map (x: builtins.substring 4 (builtins.stringLength x) x) (builtins.filter (x: (builtins.substring 0 4 x) == "ext-") (lib.flatten composerRequiresMap));

phpIniFile = "${builtins.getEnv "PWD"}/.php.ini";
phpIniFile = "${builtins.getEnv "PWD"}/.user.ini";

extensions = builtins.filter (x: !builtins.elem x withoutExtensions) (lib.unique (withExtensions ++ userExtensions));
in
Expand Down

0 comments on commit 5001b1b

Please sign in to comment.